示例#1
0
 //method returns chosen car by selected type from select tag
 public IQueryable <CarInventory> GetCarByCategory(string CarTypeName)
 {
     using (CarsLogic carsByCategory = new CarsLogic())
     {
         return(carsByCategory.CarByCategory(CarTypeName).AsQueryable());
         //return from x in dal.CarInventories
         //       where x.CarTypeName.Contains(CarTypeName)
         //       select x;
     }
 }