public async Task <ActionResult <UserDto> > GetAsync(string id) { var result = await _userQueryService.GetAsync(id); if (result == null) { return(NotFound()); } return(Ok(result)); }
public async Task <IList <UserDto> > Handle(GetUsersQueryModel request, CancellationToken cancellationToken) => await userQueryService.GetAsync();
public async Task <UserDto> Get(string id) { return(await userQueryService.GetAsync(id)); }