public IActionResult NewMessage(NewMassageviewmodel model) { //ViewData["Message"] = "Your contact page."; InfoHandler a = new InfoHandler(_userManager, _signInManager, _userDateTime); a.send(_userManager.GetUserId(User), model); return(View(model)); }