Esempio n. 1
0
 public Rec_TagModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Rec_TagModel();
     var service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Rec_TagEntity>(id, ConstantSql.hrm_rec_sp_get_TagById, ref status);
     if (entity != null)
     {
         model = entity.CopyData<Rec_TagModel>();
     }
     model.ActionStatus = status;
     return model;
 }
Esempio n. 2
0
        public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Rec_TagModel user)
        {

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