예제 #1
0
        /// <summary>
        /// Tạo mời một AttTAMScanLog
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public ActionResult Add([Bind] Att_TAMModel model)
        {
            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);

            return(Json(result));
        }
예제 #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());
 }
예제 #3
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());
 }