public async Task <GetRestaurantInfoDto> GetRestaurantInfoAsync(int id) { var restaurantInfo = await _restaurantInfo.GetRestaurantInfoAsync(d => d.Id == id); if (restaurantInfo == null) { throw new RestException(HttpStatusCode.NotFound, "Restaurant information not found."); } return(_mapper.Map <GetRestaurantInfoDto>(restaurantInfo)); }