public Cat_HDTJobGroupModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Cat_HDTJobGroupModel();
     ActionService service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Cat_HDTJobGroupEntity>(id, ConstantSql.hrm_cat_sp_get_HDTJobGroupById, ref status);
     if (entity!=null)
     {
         model = entity.CopyData<Cat_HDTJobGroupModel>();
     }
     model.ActionStatus = status;
     return model;
 }
 public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Cat_HDTJobGroupModel user)
 {
     var service = new RestServiceClient<Cat_HDTJobGroupModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
     var result = service.Put(_hrm_Hr_Service, "api/Cat_HDTJobGroup/", user);
     return Json(result);
 }