public JsonResult GetRequestHistoryCount() { var principal = (ClaimsIdentity)User.Identity; string EmpNum = principal.FindFirst(ClaimTypes.SerialNumber).Value; string _Count = RetrieveRequest.GetRequestHistoryCount(EmpNum); return(Json(_Count, JsonRequestBehavior.AllowGet)); }
public ActionResult Index() { var principal = (ClaimsIdentity)User.Identity; string EmpNum = principal.FindFirst(ClaimTypes.SerialNumber).Value; string _Count = RetrieveRequest.GetPendingRequestCount(EmpNum); string _HistoryCount = RetrieveRequest.GetRequestHistoryCount(EmpNum); ViewBag.Pending = _Count; ViewBag.HistCount = _HistoryCount; return(View()); }