public Products DeleteProdukt(int id) { var produkt = GetById(id); if (produkt != null) { dbP.Remove(produkt); } return(produkt); }
public Users Delete(int id) { var userToDelete = GetById(id); if (userToDelete != null) { dbU.Remove(userToDelete); } return(userToDelete); }
public Sushi DeleteSushi(int id) { var sushiToDelete = GetById(id); if (sushiToDelete != null) { dbS.Remove(sushiToDelete); } return(sushiToDelete); }