// GET: ReadController Index page public ActionResult Index() { try { var senderList = MessageBL.GetSendersOfMessages(_userManager.GetUserId(User)); var user = UserBL.GetUser(_userManager.GetUserId(User)); var userAndSenders = new UserAndSendersInfo(); userAndSenders.user = user; userAndSenders.senders = senderList; return(View(userAndSenders)); } catch (Exception e) { TempData["sErrMsg"] = e.Message; return(View()); //return Redirect("~/"); } }