public async Task SubmitOrder(int userId, List <CartProductDTO> cart, SentOrderViewModel sentOrder) { var succeed = await _queries.SubmitOrder(userId, cart, sentOrder); if (!succeed) { throw new Exception("Couldn't submit order!"); } }
public async Task SubmitOrder(int userId, List <CartProductDTO> cart, SentOrderViewModel sentOrder) { var succeed = await _queries.SubmitOrder(userId, cart, sentOrder); if (!succeed) { throw new Exception("Couldn't submit order!"); } }