예제 #1
0
 public IEnumerable <EnumModel> GetUserTypes()
 {
     return(Enum.GetValues(typeof(UserType))
            .Cast <UserType>()
            .Select(t => EnumModel.New((int)t, t.ToString())));
 }
예제 #2
0
 public IEnumerable <EnumModel> GetOrderStatuses()
 {
     return(Enum.GetValues(typeof(OrderStatus))
            .Cast <OrderStatus>()
            .Select(t => EnumModel.New((int)t, t.ToString())));
 }
예제 #3
0
 public IEnumerable <EnumModel> GetMaterialRequestStatuses()
 {
     return(Enum.GetValues(typeof(MaterialRequestStatus))
            .Cast <MaterialRequestStatus>()
            .Select(t => EnumModel.New((int)t, t.ToString())));
 }