Esempio n. 1
0
        public IActionResult Upsert(InternalBridgeCreateQuoteInput model, [FromServices] IQuoteUpsertCommand quoteUpsertCommand)
        {
            var payload = QuoteUpsertCommandInput.Map(model);

            var result = quoteUpsertCommand.Execute(payload);

            return(this.Ok(result));
        }
Esempio n. 2
0
 public QuoteController(IQuoteClient quoteClient, IQuoteUpsertCommand upsertCommand)
 {
     this.QuoteClient        = quoteClient;
     this.QuoteUpsertCommand = upsertCommand;
 }