Ejemplo n.º 1
0
        public IActionResult ViewReports()
        {
            if (HttpContext.Session.GetString("LoginID") == null)
            {
                return(RedirectToAction("Login", "Users"));
            }
            CentricsContext context = HttpContext.RequestServices.GetService(typeof(Centrics.Models.CentricsContext)) as CentricsContext;

            ViewData["Pending"]   = context.getPendingReports();
            ViewData["Confirmed"] = context.getConfirmedReports();

            return(View());
        }