//
 // GET: /Cat_KPIBonusItem/
 public Cat_KPIBonusItemModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Cat_KPIBonusItemModel();
     var service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Cat_KPIBonusItemEntity>(id, ConstantSql.hrm_cat_sp_get_KPIBonusItemByID, ref status);
     if (entity != null)
     {
         model = entity.CopyData<Cat_KPIBonusItemModel>();
     }
     model.ActionStatus = status;
     return model;
 }
        public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Cat_KPIBonusItemModel user)
        {
            

            var service = new RestServiceClient<Cat_KPIBonusItemModel>(UserLogin);
            service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
            var result = service.Put(_hrm_Hr_Service, "api/Cat_KPIBonusItem/", user);
            return Json(result);
        }