public void Delete(T entity) { AnimalShelterManagementEntities context = CreateContext(); context.Entry(entity).State = EntityState.Deleted; context.SaveChanges(); }
public void Insert(T entity) { AnimalShelterManagementEntities context = CreateContext(); //context.Albums.Add(album); context.Entry(entity).State = EntityState.Added; context.SaveChanges(); }