예제 #1
0
 //
 // 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;
 }
예제 #2
0
        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);
        }