public ActionResult TheMessage(TheMassageviewmodel model) { byte[] bite; HttpContext.Session.TryGetValue("msgkey", out bite); string someString = Encoding.ASCII.GetString(bite); InfoHandler a = new InfoHandler(_userManager, _signInManager, _userDateTime); a.Themsg(someString, model); return(View(model)); }