Exemplo n.º 1
0
        /// <summary>
        /// Shows the details of the user with the given user name
        /// </summary>
        /// <param name="userName"></param>
        public async Task<ActionResult> Details(string userName)
        {
            var teacher = await userManager.FindByEmailAsync(userName);

            ClassManager manager = new ClassManager(db);
            var classes = await manager.GetUserClasses(teacher);
            ViewBag.Classes = classes;

            return View(teacher);
        }