예제 #1
0
파일: Province.cs 프로젝트: chavp/Patterns
 public IEnumerable<Amphur> GetAmphurs(IAmphurRepository amphurRepository)
 {
     return from amp in amphurRepository.All()
            where amp.ProvinceID == this.ID
            && amp.LanguageID == this.LanguageID
            select amp;
 }
예제 #2
0
 public IEnumerable <Amphur> GetAmphurs(IAmphurRepository amphurRepository)
 {
     return(from amp in amphurRepository.All()
            where amp.ProvinceID == this.ID &&
            amp.LanguageID == this.LanguageID
            select amp);
 }