public async Task <ActionResult> Remove(int id) { var cus = await _context.TransactionHead.FindAsync(id); _context.Remove(cus); await _context.SaveChangesAsync(); return(RedirectToRoute("sales")); }
public async Task <ActionResult> Remove(int id) { var cus = await _context.Product.FindAsync(id); _context.Remove(cus); await _context.SaveChangesAsync(); return(RedirectToRoute("product")); }