Beispiel #1
0
        public async Task <ActionResult <IEnumerable <UserDto> > > Get()
        {
            try
            {
                var users = await _userRepositories.GetUsersAsync();

                return(_mapper.Map <List <UserDto> >(users));
            }catch (Exception ex)
            {
                return(BadRequest());
            }
        }