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