Пример #1
0
        public ActionResult <IEnumerable <UserDTO> > Get()
        {
            var users = _applicationServiceUser.GetAll();

            if (!users.Any())
            {
                return(NoContent());
            }

            return(Ok(users));
        }
Пример #2
0
 public ActionResult <IEnumerable <string> > Get()
 {
     return(Ok(_applicationServiceUser.GetAll()));
 }