Beispiel #1
0
        public void Delete(ReceiptBindingModel model)
        {
            var element = _receiptStorage.GetElement(new ReceiptBindingModel {
                Id = model.Id
            });

            if (element == null)
            {
                throw new Exception("Чек не найден");
            }
            _receiptStorage.Delete(model);
        }