public HttpResponseMessage OrderQuoteCreationC1(string uuid, [FromBody] string orderQuote) { try { (string clientId, Uri sellerId) = AuthenticationHelper.GetIdsFromAuth(Request, User); return(_bookingEngine.ProcessCheckpoint1(clientId, sellerId, uuid, orderQuote).GetContentResult()); } catch (OpenBookingException obe) { return(obe.ErrorResponseContent.GetContentResult()); } }
public async Task <ContentResult> OrderQuoteCreationC1([FromServices] IBookingEngine bookingEngine, string uuid, [FromBody] string orderQuote) { try { (string clientId, Uri sellerId) = User.GetAccessTokenOpenBookingClaims(); return((await bookingEngine.ProcessCheckpoint1(clientId, sellerId, uuid, orderQuote)).GetContentResult()); } catch (OpenBookingException obe) { return(obe.ErrorResponseContent.GetContentResult()); } }