public async Task <IActionResult> GetCompletedOrders([FromRoute(Name = "venueId")] int venueId)
 {
     return(await _repository.GetCompletedOrderStatusForVenue(venueId, (int)OrderStatus.Complete)
            .Ensure(m => m.HasValue, "Have Values")
            .OnBoth(m => m.IsFailure ? StatusCode(404, "") : StatusCode(200, m.Value.Value))
            .ConfigureAwait(false));
 }