public async Task <IActionResult> GetAllOrders(String restaurantName) { var expr = from selectRestaurant in RestaurantDomain.GetRestaurant(restaurantName) let restaurant = (selectRestaurant as RestaurantSelected)?.RestaurantAgg from getAllOrders in RestaurantDomain.GetAllOrders(restaurant.Restaurant.Id) select getAllOrders; return((IActionResult)Ok(await interpreter.Interpret(expr, Unit.Default))); }