Esempio n. 1
0
        public void Delete(long id)
        {
            var invoice = Read(id);

            _context.Remove(invoice);
            _context.SaveChanges();
        }
Esempio n. 2
0
        public StatusCodeResult Delete(int id)
        {
            var deletedInvoice = Read(id);

            _context.Remove(deletedInvoice);
            _context.SaveChanges();
            return(new OkResult());
        }