예제 #1
0
파일: OrderService.cs 프로젝트: rusith/OPS
        public async Task AddOrderAsync(string remarks, int quantity)
        {
            if (quantity < 1)
            {
                throw new Exception("Quantity should be more than 0");
            }

            await _orderProvider.AddOrderAsync(remarks, quantity);
        }