public async Task <IActionResult> Cart( int id, [FromServices] AddToCart addToCart) { var mark = GetCartUserMark(); var list = _quotesService.GetQuote(id); foreach (var product in list.QuoteProducts) { await addToCart.Do(new AddToCart.Request { UserMark = mark, ProductId = product.ProductId, Qty = product.Qty }); } return(Ok()); }