public async Task <IActionResult> Index() { var currentUser = await _userManager.GetUserAsync(User); ViewBag.CurrentUserName = currentUser.UserName; var messages = _chatService.GetAll(); return(View()); }
public List <Chat> GetAll() { return(_chatInterface.GetAll()); }