public IActionResult GetUsers() { var users = _userUseCase.GetUsers(); var usersDto = _mapper.Map <IEnumerable <UserDto> >(users); var response = new ApiResponse <IEnumerable <UserDto> >(usersDto); return(Ok(response)); }
public IEnumerable <User> GetUsers() => userUseCase.GetUsers();