Esempio n. 1
0
        //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));
        }
Esempio n. 2
0
 public ActionResult Delete(int id)
 {
     return(AddressDAO.Delete(id) ? (ActionResult)Ok() : NotFound());
 }