예제 #1
0
 /// <summary>
 ///  Create web model from entity
 /// </summary>
 public static MaintenanceTypeDropDown CreateFromDropDown(this Cares.Models.DomainModels.MaintenanceType source)
 {
     return(new MaintenanceTypeDropDown
     {
         MaintenanceTypeId = source.MaintenanceTypeId,
         MaintenanceTypeCodeName = source.MaintenanceTypeCode + " - " + source.MaintenanceTypeName
     });
 }
예제 #2
0
 /// <summary>
 ///  Create web model from entity
 /// </summary>
 public static MaintenanceType CreateFrom(this Cares.Models.DomainModels.MaintenanceType source)
 {
     return(new MaintenanceType
     {
         MaintenanceTypeId = source.MaintenanceTypeId,
         MaintenanceTypeCode = source.MaintenanceTypeCode,
         MaintenanceTypeName = source.MaintenanceTypeName,
         MaintenanceTypeDescription = source.MaintenanceTypeDescription,
         MaintenanceTypeGroupId = source.MaintenanceTypeGroupId,
         MaintenanceTypeGroupName = source.MaintenanceTypeGroup.MaintenanceTypeGroupName
     });
 }