/// <summary> /// Get restaurants by supply day of week /// </summary> /// <param name="request">request for getting restaurants by supply day of week</param> /// <returns>returns response of the operation</returns> public GetRestaurantsBySupplyDayOfWeekResponse GetBySupplyDayOfWeek(GetRestaurantsBySupplyDayOfWeekRequest request) { //Get restaurants by supply day of week var restaurantEntities = _restaurantRepository.GetBySupplyDayOfWeek(request.SupplyDayOfWeek); return(new GetRestaurantsBySupplyDayOfWeekResponse() { Restaurants = restaurantEntities.Select(entity => new RestaurantDTO { ID = entity.ID, Latitude = entity.Latitude, Longitude = entity.Longitude, SupplyDayOfWeek = entity.SupplyDayOfWeek }).ToList() }); }