Exemple #1
0
        public async Task <IActionResult> Create(QuotesService.Request request)
        {
            request.UserId = GetUserId();
            var result = await _quotesService.CreateQuote(request);

            return(RedirectToPage("/BusinessProfile/Quotes/Index"));
        }
Exemple #2
0
        public PendingOrder CreatePendingOrder(int cartId, string userId)
        {
            var request = new QuotesService.Request {
                UserId = userId
            };
            var quote = _quotesService.CreateQuote(request);

            if (quote == null)
            {
                return(null);
            }

            return(CreatePendingOrder(quote.Id, userId, string.Empty));
        }