public static GeneralType MapPackageToGeneralType(PackageTypeModel packageType) { GeneralType type = new GeneralType(); type.code = packageType.Code; type.description = packageType.Description; return(type); }
public static PackageType ToEntity(this PackageTypeModel model, PackageType destination) { return(AutoMapperConfiguration.Mapper.Map(model, destination)); }
public static PackageType ToEntity(this PackageTypeModel model) { return(AutoMapperConfiguration.Mapper.Map <PackageTypeModel, PackageType>(model)); }