예제 #1
0
 public Make GetMakesById(int id)
 {
     return(Makes.Where(m => m.MakeId == id).FirstOrDefault());
 }
예제 #2
0
        public IEnumerable <Mdle> GetModelsForSpecificMake(string make)
        {
            int makesId = Makes.Where(p => p.MakeName == make).FirstOrDefault().MakeId;

            return(Models.Where(m => m.MakeId == makesId));
        }