Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 /// <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;
 }