예제 #1
0
 private Code EntityToModel(HR_REF_CODEFILE model)
 {
     if (model != null)
     {
         var entity = new Code()
         {
             CodeId    = model.CODEID,
             CodeName  = model.CODENAME,
             CodeNo    = model.CODENO,
             CodeValue = model.CODEVALUE
         };
         return(entity);
     }
     return(null);
 }
예제 #2
0
 private HR_REF_CODEFILE ModelToEntity(Code model)
 {
     if (model != null)
     {
         var entity = new HR_REF_CODEFILE()
         {
             CODEID      = model.CodeId,
             CODENAME    = model.CodeName,
             CODENO      = model.CodeNo,
             CODEVALUE   = model.CodeValue,
             DESCRIPTION = "",
         };
         return(entity);
     }
     return(null);
 }