public bool Delete(int id) { var supplement = this.db .Supplements .Find(id); if (supplement == null) { return(false); } this.db.Supplements.Remove(supplement); db.SaveChanges(); return(true); }