//En attendant de la résolution de la contrainte on delete cascade en bdd public bool DeleteWithCascade(int id) { if (!AddressDAO.Delete(PlaceDAO.Get(id).IdAdr)) { return(false); } if (!ReviewDAO.DeleteByPlace(id)) { return(false); } return(PlaceDAO.Delete(id)); }
public ActionResult Delete(int id) { return(AddressDAO.Delete(id) ? (ActionResult)Ok() : NotFound()); }