示例#1
0
 public static Material ToEntity(this CreateMaterialModel model, Material entity)
 {
     return(model.MapTo(entity));
 }
示例#2
0
 public static MaterialDetailsPageViewModel ToDetailsViewModel(this CreateMaterialModel model, MaterialDetailsPageViewModel viewModel)
 {
     return(model.MapTo(viewModel));
 }
示例#3
0
 // from action model to entity
 public static Material ToEntity(this CreateMaterialModel model)
 {
     return(model.MapTo <CreateMaterialModel, Material>());
 }