get invoice view

This commit is contained in:
mmrbnjd
2024-05-14 14:58:25 +03:30
parent b208c71bd7
commit b44500d9ab
9 changed files with 330 additions and 14 deletions

21
Shared/ExMethod.cs Normal file
View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Reflection;
using System.Text;
using System.Threading.Tasks;
namespace Shared
{
public static class ExMethod
{
public static string GetEnumDisplayName(this Enum enumType)
{
return enumType.GetType().GetMember(enumType.ToString())
.First()
.GetCustomAttribute<DisplayAttribute>()
.Name;
}
}
}