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