Esempio n. 1
0
        public IActionResult GetUsers()
        {
            try
            {
                var users = new UsersService(_context).GetUsers();

                if (!users.Any())
                {
                    return(NotFound());
                }
                return(Ok(users));
            }
            catch (System.Exception)
            {
                throw;
            }
        }