/// <summary> /// Crete From Domain Model /// </summary> public static NrtTypeDropDown CreateFrom(this DomainModels.NrtType source) { return(new NrtTypeDropDown { NrtTypeId = source.NrtTypeId, NrtTypeCodeName = source.NrtTypeCode + " - " + source.NrtTypeName, }); }
/// <summary> /// Crete From Domain model /// </summary> public static NrtType CreateFromm(this DomainModels.NrtType source) { return(new NrtType { NrtTypeId = source.NrtTypeId, NrtTypeCode = source.NrtTypeCode, NrtTypeName = source.NrtTypeName, Description = source.Description, NrtTypeKey = source.NrtTypeKey, StandardLifeTime = source.StandardLifeTime, VehicleStatusId = source.VehicleStatusId, VehicleStatusName = source.VehicleStatus.VehicleStatusName }); }