public bool Delete(ConseilLocal item) { try { ConseilLocal cl = Get(item.IdConseilLocal); if (cl != null) { _context.Remove(item); _context.SaveChanges(); return(true); } else { return(false); } } catch (Exception) { return(false); } }
public bool Delete(Epci item) { try { Epci epcis = Get(item.IdEpci); if (epcis != null) { _context.Remove(item); _context.SaveChanges(); return(true); } else { return(false); } } catch (Exception) { return(false); } }
public bool Delete(Technicien item) { try { Technicien tech = Get(item.IdTechnicien); if (tech != null) { _context.Remove(item); _context.SaveChanges(); return(true); } else { return(false); } } catch (Exception) { return(false); } }