public static Material ToEntity(this CreateMaterialModel model, Material entity) { return(model.MapTo(entity)); }
public static MaterialDetailsPageViewModel ToDetailsViewModel(this CreateMaterialModel model, MaterialDetailsPageViewModel viewModel) { return(model.MapTo(viewModel)); }
// from action model to entity public static Material ToEntity(this CreateMaterialModel model) { return(model.MapTo <CreateMaterialModel, Material>()); }