public ActionResult Create(Rec_GroupConditionModel model)
        {
         
            if (ModelState.IsValid)
            {
                var service = new RestServiceClient<Rec_GroupConditionModel>(UserLogin);
                service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
                var result = service.Put(_Hrm_Hre_Service, "api/Rec_GroupCondition/", model);

                ViewBag.MsgInsert = "Insert success";
            }
            return View();
        }
 public Rec_GroupConditionModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Rec_GroupConditionModel();
     var service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Rec_GroupConditionEntity>(id, ConstantSql.hrm_tra_sp_get_GroupConditionById, ref status);
     if (entity != null)
     {
         model = entity.CopyData<Rec_GroupConditionModel>();
     }
     model.ActionStatus = status;
     return model;
 }