Exemplo n.º 1
0
        public virtual ActionResult Delete(int id)
        {
            var userId    = 1; // for test purpose only
            var invoiceId = InvoiceItemBL.Delete(id, userId);

            return(RedirectToAction("Edit", "Invoice", new { Id = invoiceId }));
        }
Exemplo n.º 2
0
        public virtual ActionResult Create(InvoiceItemDto invoiceItem)
        {
            invoiceItem.CreatedBy = new UserDto()
            {
                Id = 1
            };                                                // for test purpose only
            InvoiceItemBL.Create(invoiceItem);

            return(RedirectToAction("Edit", "Invoice", new { Id = invoiceItem.InvoiceId }));
        }