public ActionResult MessageDetail(string submit2, MessageDetailviewmodel model) { HttpContext.Session.Set("msgkey", Encoding.ASCII.GetBytes(submit2)); InfoHandler a = new InfoHandler(_userManager, _signInManager, _userDateTime); a.Changereadtabel(submit2, model); // a.msgDetails(submit, model); return(this.RedirectToAction("TheMessage", "Home")); }