Files
2026-03-17 08:54:34 -05:00

34 lines
964 B
C#

using Blazored.Modal.Services;
using Blazored.Toast.Services;
using Microsoft.AspNetCore.Components;
using Microsoft.Extensions.Configuration;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Reflection;
using System.Threading.Tasks;
namespace ReserveManagementSystemUI.Shared
{
public partial class MainLayout: LayoutComponentBase
{
[Inject]
IToastService ToastService { get; set; }
[Inject]
IConfiguration Configuration { get; set; }
[Inject]
IModalService Modal { get; set; }
private string GetAppVersion()
{
var version = string.IsNullOrEmpty(FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion) ?
"" :
$"v{FileVersionInfo.GetVersionInfo(Assembly.GetExecutingAssembly().Location).ProductVersion}";
return version;
}
}
}