public IActionResult Index(Indexviewmodel model) { LoginInfo a = new LoginInfo(_userManager, _signInManager, _userDateTime); a.Totallogin(_userManager.GetUserId(User), model); a.Datelogin(_userManager.GetUserId(User), model); a.unReadmsg(_userManager.GetUserId(User), model); return(View(model)); }