public void Handle(DeleteInvoiceSaleCommand handle)
        {
            var inv = new Domain.Model.InvoiceSale.InvoiceSale(handle.SeqId, 0);

            inv.Children.Add(new InvoiceSaleChild(11, handle.SeqId, 0, 0, 0));
            inv.Children.Add(new InvoiceSaleChild(12, handle.SeqId, 101, 2, 5000));
            _invoiceSaleRepository.Delete(inv);
        }
Пример #2
0
        public ActionResult Delete(DeleteInvoiceSaleCommand model)
        {
            //model.Children.Add(new InvoiceSaleChild(5, model.SeqId, 8900, 11, 12002));
            //model.Children.Add(new InvoiceSaleChild(6, model.SeqId, 7950, 22, 15005));
            //model.Children.Add(new InvoiceSaleChild(0, model.SeqId, 8008, 100, 414141));

            Bus.Dispatch(model);
            return(View());
        }