public async Task <IActionResult> Index() { if (!User.Identity.IsAuthenticated) { return(RedirectToAction("Authentication")); } else { var model = await services.GetUser(); ViewBag.Education = await services.GetEducationDetails(); // ViewBag.Msg = a; return(View(model)); } }