Пример #1
0
 public static CargoSPService ToEntity(this CargoSPServiceModel model, CargoSPService destination)
 {
     return(AutoMapperConfiguration.Mapper.Map(model, destination));
 }
Пример #2
0
 public static CargoSPServiceModel ToModel(this CargoSPService entity)
 {
     return(AutoMapperConfiguration.Mapper.Map <CargoSPService, CargoSPServiceModel>(entity));
 }