示例#1
0
 public static SuppliesVueData FromViewModel(SuppliesViewModel s)
 {
     return(new SuppliesVueData
     {
         SupplierType = s.SupplierType.ToString(),
         PpeTypes = s.PpeTypes.SelectToList(PpeTypeInfo.Project),
     });
 }
 public static EditSuppliesViewModel FromEntities(Supplier s)
 {
     return(new EditSuppliesViewModel
     {
         Supplies = SuppliesViewModel.FromEntity(s),
         Status = PostStatusViewModel.FromEntity(s),
         Location = LocationViewModel.FromEntity(s),
         Notes = NotesViewModel.FromSupplier(s),
     });
 }