Ejemplo n.º 1
0
 /// <summary>
 ///  Create web model from entity
 /// </summary>
 public static DesigGradeDropDown CreateFrom(this DomainModels.DesignGrade source)
 {
     return(new DesigGradeDropDown
     {
         DesigGradeId = source.DesigGradeId,
         DesigGradeCodeName = source.DesigGradeCode + " - " + source.DesigGradeName
     });
 }
Ejemplo n.º 2
0
 /// <summary>
 ///  Create from domain model to web model
 /// </summary>
 public static DesignGrade CreateFromm(this DomainModels.DesignGrade source)
 {
     return(new DesignGrade
     {
         DesigGradeId = source.DesigGradeId,
         DesigGradeCode = source.DesigGradeCode,
         DesigGradeName = source.DesigGradeName,
         DesigGradeDescription = source.DesigGradeDescription
     });
 }