public ActionResult MyProfile() { var user = UserManager.FindById(User.Identity.GetUserId()); if (User.IsInRole("Doctor")) { ViewBag.docProfile = _doctorProfileRepository.Find(user.Id); ViewBag.consulting = _consultingRepository.GetAvailableByDoctorId(user.Id); } return(View(user)); }