/// <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 }); }
/// <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 }); }