コード例 #1
0
        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());
        }
コード例 #2
0
 public virtual GetRestaurantsResponse GetRestaurants(GetRestaurantsRequest request)
 {
     throw new System.NotImplementedException();
 }
コード例 #3
0
 public virtual GetRestaurantsResponse GetRestaurants(GetRestaurantsRequest request)
 {
     throw new System.NotImplementedException();
 }