示例#1
0
        public async Task <IActionResult> OnGetClinical()
        {
            bool IsLoggedIn = SessionHelpers.GetObject <bool>(HttpContext.Session, Constant.IsLoggedIn);

            if (IsLoggedIn)
            {
                ListDeits = await _communicationService.GetAllDeits();

                SessionHelpers.StoreObject(HttpContext.Session, Constant.IsPresent, true);
                SessionHelpers.StoreObject(HttpContext.Session, Constant.AllDeits, ListDeits);
                return(RedirectToPage("Clinical"));
            }
            else
            {
                SessionHelpers.StoreObject(HttpContext.Session, Constant.RedirectPage, "Services");
                return(RedirectToPage("Login"));
            }
        }