public void Delete(int id) { T model = db.Set <T>().Find(id); db.Set <T>().Remove(model); Save(); }
public Repository(AnimalContext Context) { db = Context; dbEntity = db.Set <T>(); }