Пример #1
0
 public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Att_TAMModel Att_TAMData)
 {
     if (ModelState.IsValid)
     {
         var service = new RestServiceClient<Att_TAMModel>(UserLogin);
         service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
         var result = service.Put(_Hrm_Hre_Service, "api/Att_TAM/", Att_TAMData);
         //return Json(result);
         ViewBag.MsgUpdate = ConstantDisplay.HRM_Attendance_TAMScanLog_UpdateSuccess.TranslateString();
     }
     return View();
 }
Пример #2
0
        public ActionResult Create(Att_TAMModel model)
        {

            if (ModelState.IsValid)
            {
                var service = new RestServiceClient<Att_TAMModel>(UserLogin);
                service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
                var result = service.Put(_Hrm_Hre_Service, "api/Att_TAM/", model);
                ViewBag.MsgInsert = ConstantDisplay.HRM_Attendance_TAMScanLog_InsertSuccess.TranslateString();
            }
            return View();
        }