Exemplo n.º 1
0
        public async Task <ActionResult> MyExam()
        {
            Dictionary <int, string> result = await services.GetRegisteredCourses(User.Identity.GetUserId());

            if (result != null)
            {
                return(View(result));
            }
            else
            {
                return(RedirectToAction("Index", "Home"));
            }
        }