public void DeleteById(int entityID) { var entity = _cityDAL.Get(a => a.ID == entityID); Delete(entity); }
public City GetByID(int entityID) { return(_cityDal.Get(a => a.ID == entityID)); }
public bool Delete(int modelID) { City city = _cityDAL.Get(a => a.ID == modelID); return(_cityDAL.Delete(city) > 0); }
public City GetWithId(int id) { return(_context.Get(c => c.Id == id)); }
public City Get(int entityID) { return(_cityDAL.Get(a => a.ID == entityID)); }