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