public ActionResult Create(Att_TAMScanLogModel model)
        {

            if (ModelState.IsValid)
            {
                var service = new RestServiceClient<Att_TAMScanLogModel>(UserLogin);
                service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
                var result = service.Put(_Hrm_Hre_Service, "api/Att_TAMScanLog/", model);
                ViewBag.MsgInsert = ConstantDisplay.HRM_Attendance_TAMScanLog_InsertSuccess.TranslateString();
            }
            return View();
        }
 /// <summary>
 /// [Son.Vo] - Lấy dữ liệu Lịch Sử Thẻ(Att_TAMScanLog) theo Id
 /// </summary>
 /// <param name="id"></param>
 /// <returns></returns>
 public Att_TAMScanLogModel GetById(Guid id)
 {
     string status = string.Empty;
     var model = new Att_TAMScanLogModel();
     ActionService service = new ActionService(UserLogin);
     var entity = service.GetByIdUseStore<Att_TAMScanLogEntity>(id, ConstantSql.hrm_att_sp_get_TAMScanLogById, ref status);
     if (entity != null)
     {
         model = entity.CopyData<Att_TAMScanLogModel>();
     }
     model.ActionStatus = status;
     return model;
 }
 public ActionResult Edit([DataSourceRequest] DataSourceRequest request, Att_TAMScanLogModel AttTAMScanLog)
 {
     if (ModelState.IsValid)
     {
         var service = new RestServiceClient<Att_TAMScanLogModel>(UserLogin);
         service.SetCookies(this.Request.Cookies, _Hrm_Hre_Service);
         var result = service.Put(_Hrm_Hre_Service, "api/Att_TAMScanLog/", AttTAMScanLog);
         //return Json(result);
         ViewBag.MsgUpdate = ConstantDisplay.HRM_Attendance_TAMScanLog_UpdateSuccess.TranslateString();
     }
     return View();
 }