Beispiel #1
0
 /// <summary>
 ///  Create web model from entity
 /// </summary>
 public static JobTypeDropDown CreateFrom(this DomainModels.JobType source)
 {
     return(new JobTypeDropDown
     {
         JobTypeId = source.JobTypeId,
         JobTypeCodeName = source.JobTypeCode + " - " + source.JobTypeName
     });
 }
Beispiel #2
0
 /// <summary>
 /// Crete From Domain model
 /// </summary>
 public static JobType CreateFromm(this DomainModels.JobType source)
 {
     return(new JobType
     {
         JobTypeId = source.JobTypeId,
         JobTypeName = source.JobTypeName,
         JobTypeCode = source.JobTypeCode,
         JobTypeDescription = source.JobTypeDescription
     });
 }