예제 #1
0
 public static SPCustomer ToEntity(this SPCustomerModel model, SPCustomer destination)
 {
     return(AutoMapperConfiguration.Mapper.Map(model, destination));
 }
예제 #2
0
 public static SPCustomerModel ToModel(this SPCustomer entity)
 {
     return(AutoMapperConfiguration.Mapper.Map <SPCustomer, SPCustomerModel>(entity));
 }