public OperationResponse <QuoteUpsertCommandOutput> Execute(QuoteUpsertCommandInput input) { var result = new OperationResponse <QuoteUpsertCommandOutput>(); try { using (var dbContextScope = this.DbContextScopeFactory.Create()) { var quote = this.Repository.GetByFunzaId(input.FunzaId); if (quote != null) { } else { } } } catch (Exception ex) { throw; } return(result); }
public IActionResult Upsert(InternalBridgeCreateQuoteInput model, [FromServices] IQuoteUpsertCommand quoteUpsertCommand) { var payload = QuoteUpsertCommandInput.Map(model); var result = quoteUpsertCommand.Execute(payload); return(this.Ok(result)); }