public IActionResult Upsert(InternalBridgeCreateQuoteInput model, [FromServices] IQuoteUpsertCommand quoteUpsertCommand) { var payload = QuoteUpsertCommandInput.Map(model); var result = quoteUpsertCommand.Execute(payload); return(this.Ok(result)); }
public QuoteController(IQuoteClient quoteClient, IQuoteUpsertCommand upsertCommand) { this.QuoteClient = quoteClient; this.QuoteUpsertCommand = upsertCommand; }