Example #1
0
        public bool AddOrder(Order order)
        {
            _item.ID = order.ItemId;
            DataTable item = _itemRepository.SearchItemById(_item);

            order.TotalPrice = Convert.ToInt32(item.Rows[0]["Price"].ToString()) * order.Quantity;


            return(_orderRepository.AddOrder(order));
        }