public Staff DeleteStaff(long id) { var staff = _context.Staff.Find(id); _context.Staff.Remove(staff); _context.SaveChangesAsync(); return(staff); }
public Product DeleteProduct(long id) { var product = _context.Product.Find(id); _context.Product.Remove(product); _context.SaveChangesAsync(); return(product); }