public static MaterialGroup ToEntity(this MaterialGroupModel model, MaterialGroup entity)
 {
     return(model.MapTo(entity));
 }
 public static MaterialGroupDetailsPageViewModel ToDetailsViewModel(this MaterialGroupModel model, MaterialGroupDetailsPageViewModel viewModel)
 {
     return(model.MapTo(viewModel));
 }
 // from action model to entity
 public static MaterialGroup ToEntity(this MaterialGroupModel model)
 {
     return(model.MapTo <MaterialGroupModel, MaterialGroup>());
 }