예제 #1
0
 /// <summary>
 ///  Create web model from entity
 /// </summary>
 public static DesignationDropDown CreateFrom(this DomainModels.Designation source)
 {
     return(new DesignationDropDown
     {
         DesignationId = source.DesignationId,
         DesignationCodeName = source.DesignationCode + " - " + source.DesignationName
     });
 }
예제 #2
0
 /// <summary>
 ///  Create from domain model to web model
 /// </summary>
 public static Designation CreateFromm(this DomainModels.Designation source)
 {
     return(new Designation
     {
         DesignationId = source.DesignationId,
         DesignationCode = source.DesignationCode,
         DesignationName = source.DesignationName,
         DesignationDescription = source.DesignationDescription
     });
 }