Exemple #1
0
 public static SelectListItem SelectModel(this tMaterial item)
 {
     return(new SelectListItem
     {
         Value = item.Id.ToString(),
         Text = item.Code
     });
 }
Exemple #2
0
 public static MaterialModel MaterialModel(this tMaterial item)
 {
     return(new MaterialModel
     {
         Id = item.Id,
         Code = item.Code,
         Description = item.Description,
         Unit = item.Unit
     });
 }