Exemplo n.º 1
0
 /// <summary>
 /// [T Lấy dữ liệu Thương Hiệu(Cat_KPIBonus) theo Id
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Cat_KPIBonusModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Cat_KPIBonusModel();
     var service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Cat_KPIBonusEntity>(id, ConstantSql.hrm_cat_sp_get_KPIBonusIds, ref status);
     if (entity != null)
     {
         model = entity.CopyData<Cat_KPIBonusModel>();
     }
     model.ActionStatus = status;
     return model;
 }
Exemplo n.º 2
0
 public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Cat_KPIBonusModel user)
 {
     
     var service = new RestServiceClient<Cat_KPIBonusModel>(UserLogin);
     service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
     var result = service.Put(_hrm_Hr_Service, "api/Cat_KPIBonus/", user);
     return Json(result);
 }