public IQueryable <Fis> CariFisleri(int id) { return(_context.Set <Fis>().Where(x => x.CariId == id) .Include(x => x.FisOzelliks) .Include(x => x.User) .Include(x => x.Cari) .AsQueryable()); }
public IQueryable <Cari> GetCarisForList() { return(_context.Set <Cari>() .Include(x => x.CariEMails) .Include(x => x.CariTelefons) .Include(x => x.CariCeps) .Include(x => x.CariAdreslers).ThenInclude(x => x.Il) .Include(x => x.CariAdreslers).ThenInclude(x => x.Ilce) .Include(x => x.CariAdreslers) .AsQueryable()); }
public async Task<User> GetUserByIdAsync(int id) { return await _context.Set<User>().Where(x => x.Id == id).FirstOrDefaultAsync(); }