public List <Product> GetList(Expression <Func <Product, bool> > filter = null) { //Thread.Sleep(3000); _backgroundWorker.Schedule(() => _mailService.Send(new Mail()), TimeSpan.FromMinutes(1)); return(_productDal.GetList(filter).ToList()); }
public List <Product> GetList(Expression <Func <Product, bool> > filter = null) { //Thread.Sleep(3000); _backgroundWorker.Schedule(() => _mailService.Send(new Mail()), TimeSpan.FromMinutes(1)); return(_productDal.GetList(filter).ToList()); }