public async Task <IActionResult> LogOut(int userId) { await _appDbContext.LogOut(userId); return(new OkObjectResult("Log out success.")); }