Beispiel #1
0
        public void Delete(OrderBindingModel model)
        {
            OrderViewModel element = _orderStorage.GetElement(new OrderBindingModel {
                Id = model.Id
            });

            if (element == null)
            {
                throw new Exception("Элемент не найден");
            }
            _orderStorage.Delete(model);
        }
Beispiel #2
0
        public void Delete(OrderBindingModel model)
        {
            var element = _orderStorage.GetElement(new OrderBindingModel
            {
                Id = model.Id
            });

            if (element == null)
            {
                throw new Exception("Поставщик не найден");
            }
            _orderStorage.Delete(model);
        }