public JsonResult GetAll([FromQuery] GetAllPostsRequest request) { return(Json(_postService.GetAll(request))); }
public GetAllPostsResponse GetAllPosts(GetAllPostsRequest request) { return(new GetAllPostsHandler(_repository).Handle(request)); }
public async Task <GetAllPostsResponse> GetAllPosts(GetAllPostsRequest request) { var posts = await ProcessRequest(request, _postsRepository.GetAllPosts); return(posts); }