public async Task <bool> Handle(GetRestaurantsRequest request, IOutputPort <GetRestaurantsResponse> outputPort) { IEnumerable <Restaurant> response = await _restaurantRepository.GetPagedRestaurants(request.PagedRequest); outputPort.Handle(response.Any() ? new GetRestaurantsResponse(response.ToList(), true, string.Empty) : new GetRestaurantsResponse(new List <Restaurant>(), false, string.Empty)); return(response.Any()); }
public virtual GetRestaurantsResponse GetRestaurants(GetRestaurantsRequest request) { throw new System.NotImplementedException(); }