public Area EntityToModel(HR_AREA entity) { if (entity != null) { var model = new Area(); return(model); } return(null); }
private Area EntityToModel(HR_AREA model) { if (model != null) { var entity = new Area() { //AreaId = model.AREAID, //AreaName = model.AREANAME, //ParentId = model.PARENTID }; return(entity); } return(null); }