public ActionResult Index() { string username = HttpContext.Request.Cookies["login"]["name"]; RegisterModel registerModel = new RegisterModel(); ViewBag.registers = registerModel.ListRegisterOfStudent(username); MessageModel messageModel = new MessageModel(); ViewBag.messages = messageModel.GetMessagesOfStudent(username); return(View()); }