Пример #1
0
        public List <Departmanlar> GetByKullaniciAdi(string kullaniciAdi)
        {
            List <int?> liste = _dBUsersDepartmanDal.GetList(x => x.Kullanici_Adi == kullaniciAdi).Select(x => x.Departman_No).ToList();

            return(_departmanDal.GetList(x => liste.Contains(x.Departman_No)));
        }
Пример #2
0
 public List <DBUsersDepartman> GetAllDBUsersDepartman(Expression <Func <DBUsersDepartman, bool> > filter = null)
 {
     return(filter == null?_dBUsersDepartmanDal.GetList() : _dBUsersDepartmanDal.GetList(filter));
 }