public ActionResult Create(Sal_InsuranceSalaryModel model)
        {

            if (ModelState.IsValid)
            {
                var service = new RestServiceClient<Sal_InsuranceSalaryModel>(UserLogin);
                service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
                var result = service.Put(_hrm_Hr_Service, "api/Sal_InsuranceSalary/", model);
                ViewBag.MsgInsert = ConstantDisplay.HRM_Att_Grade_InsertSuccess.TranslateString();
            }
            return View();
        }
 /// <summary>
 /// [Tho.Bui] - Lấy dữ liệu Quốc Gia(Cat_Country) theo Id
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Sal_InsuranceSalaryModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Sal_InsuranceSalaryModel();
     ActionService service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Sal_InsuranceSalaryEntity>(id, ConstantSql.hrm_sal_sp_get_InsuranceSalaryById, ref status);//note
     if (entity != null)
     {
         model = entity.CopyData<Sal_InsuranceSalaryModel>();
     }
     model.ActionStatus = status;
     return model;
 }
 public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Sal_InsuranceSalaryModel Sal_Grade)
 {
     //var isAccess = CheckPermission(UserId, PrivilegeType.Modify, ConstantPermission.Att_Grade);
     //if (!isAccess)
     //{
     //    return PartialView("AccessDenied");
     //}
     if (ModelState.IsValid)
     {
         var service = new RestServiceClient<Sal_InsuranceSalaryModel>(UserLogin);
         service.SetCookies(this.Request.Cookies, _hrm_Hr_Service);
         var result = service.Put(_hrm_Hr_Service, "api/Sal_InsuranceSalary/", Sal_Grade);
         //return Json(result);
         ViewBag.MsgUpdate = ConstantDisplay.HRM_Att_Grade_UpdateSuccess.TranslateString();
     }
     return View();
 }