Exemplo n.º 1
0
        public IActionResult Logs(long userId)
        {
            IEnumerable <UserLog> usersLogs = _userLogService.GetUserLogs(userId);

            if (!usersLogs.Any())
            {
                return(RedirectToAction("Users"));
            }
            return(View(usersLogs));
        }