Exemple #1
0
        public IActionResult Get()
        {
            List <User> users = _srv.AllUsers();

            if (users.Count > 0)
            {
                return(Ok(users));
            }
            return(NotFound("No users exist!"));
        }