Is it possible to update/remove multiples entities, for example
[HttpPost, ActionName("removeresponsible")]
public ActionResult removeresponsibleaction(Responsible modelo)
{
Responsible responsible = db.Responsibles.Single(x => x.responsible_id == modelo.responsible_id);
db.Responsibles.Remove(responsible);
db.SaveChanges();
ViewBag.responsible = db.Responsibles.ToList();
return View("responsiblemanager");
}
This code works with one single responsible with an unique id, but how can I do it if there are many responsible with the same id? For example, I know that with SQL it would be something like this "delete from table where responsible_id=3".