public async Task <DataGridDto <KullaniciListDto> > List(int firmaid)
 {
     return(await GenerateDataGridDto <KullaniciListDto> .Store((from k in _kullaniciRepository.All(firmaid)
                                                                 join i in _rolRepository.All() on k.RolId equals i.Id
                                                                 select new KullaniciListDto
     {
         Adres = k.Adres,
         Eposta = k.Eposta,
         Id = k.Id,
         Meslek = k.Unvan,
         Rol = i.Isim,
         Telefon = k.Telefon,
         AdSoyad = k.AdSoyad
     })));
 }
示例#2
0
 public async Task <int> First()
 {
     return(await _rolRepository.All().OrderBy(o => o.Id).Select(s => s.Id).FirstAsync());
 }