Ejemplo n.º 1
0
 public HR_TEMPLATEITEMUNIT ModelToEntity(HR_TemplateItemUnitDTO model)
 {
     if (model != null)
     {
         var entity = new HR_TEMPLATEITEMUNIT()
         {
             ITEMID     = model.ITEMID,
             ITEMUNITID = model.ITEMUNITID,
             UNITDESC   = model.UNITDESC,
             UNITNAME   = model.UNITNAME
         };
         return(entity);
     }
     return(null);
 }
Ejemplo n.º 2
0
 public HR_TemplateItemUnitDTO EntityToModel(HR_TEMPLATEITEMUNIT entity)
 {
     if (entity != null)
     {
         var model = new HR_TemplateItemUnitDTO()
         {
             ITEMID     = entity.ITEMID,
             ITEMUNITID = entity.ITEMUNITID,
             UNITDESC   = entity.UNITDESC,
             UNITNAME   = entity.UNITNAME
         };
         return(model);
     }
     return(null);
 }