public ActionResult ViewDetails(int id) { if (User.IsInRole("Medical")) { return(RedirectToAction("Index", "Medical")); } if (User.IsInRole("User")) { return(RedirectToAction("Index", "User")); } if (User.IsInRole("Doctor")) { return(RedirectToAction("Index", "Doctor")); } if (User.IsInRole("MainAdmin")) { return(RedirectToAction("Index", "MainAdmin")); } ViewBag.GetMedicalAllDetails = aHomeManager.GetMedicalSearchViewInfo(id); return(View()); }
public ActionResult ViewDetails(int id) { ViewBag.GetMedicalAllDetails = aHomeManager.GetMedicalSearchViewInfo(id); ViewBag.GetName = GetUserData().Name; return(View()); }