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