Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        public IActionResult Upsert(InternalBridgeCreateQuoteInput model, [FromServices] IQuoteUpsertCommand quoteUpsertCommand)
        {
            var payload = QuoteUpsertCommandInput.Map(model);

            var result = quoteUpsertCommand.Execute(payload);

            return(this.Ok(result));
        }