public bool Delete(Expression <Func <T, bool> > where) { IQueryable <T> entities = CurrentDal.GetEntities(where); if (entities != null) { CurrentDal.DeteteRange(entities); return(Db.SaveChanges() > 0); } return(false); }