Esempio n. 1
0
        public async Task <ActionResult> Remove(int id)
        {
            var cus = await _context.TransactionHead.FindAsync(id);

            _context.Remove(cus);
            await _context.SaveChangesAsync();

            return(RedirectToRoute("sales"));
        }
Esempio n. 2
0
        public async Task <ActionResult> Remove(int id)
        {
            var cus = await _context.Product.FindAsync(id);

            _context.Remove(cus);
            await _context.SaveChangesAsync();

            return(RedirectToRoute("product"));
        }