public async Task <IActionResult> Create(QuotesService.Request request) { request.UserId = GetUserId(); var result = await _quotesService.CreateQuote(request); return(RedirectToPage("/BusinessProfile/Quotes/Index")); }
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)); }