here is my code block
foreach(var n in animalbirdAdoptionDetails)
{
int animalBirdsId = n.AnimalsAndBirdsId;
int NoAnimal = Convert.ToInt32(n.NoAnimalsAdopted);
n.isActive = false;
context.NameOfAnimalsAndBirds.Update(e2 => new entity
{
quantity = e2.quantity + moreQuantity
});
context.SaveChanges();
}
DbSet' does not contain a definition for 'Update' and no accessible extension method 'Update' accepting a first argument of type 'DbSet' could be found (are you missing a using directive or an assembly reference?)