public ActionResult LiveMonitoring() { if (getCurrentUser() == null) { return(RedirectToAction("Index", "Login")); } else { ViewBag.CurrentDate = DateTime.Now; ViewBag.AllHoldDocuments = ioverTimeRequest.getAllHoldDocuments(); return(View(ioverTimeRequest.GetAllLiveOvertimeRequest(getCurrentUser().u_id))); } }
public String LiveMonitoring(int u_id) { Result result = new Result(); try { result.Objects = ioverTimeRequest.GetAllLiveOvertimeRequest(u_id); result.Message = "Success"; return(JsonConvert.SerializeObject(result)); } catch (Exception ex) { result.Objects = null; result.Message = ex.Message; return(JsonConvert.SerializeObject(result)); } }