// GET api/values/5
 
 public IEnumerable<CarsStock> Get(int id)
 {
     CarsStock ST = new CarsStock();
     CarsStock ST1 = new CarsStock();
     List<CarsStock> li = new List<CarsStock>();
     if (id == 1)
     {
         ST.CarName = "Maruti Waganor";
         ST.CarPrice = "4 lakhs";
         ST.CarModel = "VXI";
         ST.CarColor = "Brown";
         li.Add(ST);
     }
     else
     {
         ST.CarName = "Maruti Swift";
         ST.CarPrice = "5 lakhs";
         ST.CarModel = "VXI";
         ST.CarColor = "Red";
         li.Add(ST1);
     }
     
     
     return li;
 }
 public IEnumerable<CarsStock> GetAllCarDetails()
 {
     CarsStock ST = new CarsStock();
     CarsStock ST1 = new CarsStock();
     List<CarsStock> li = new List<CarsStock>();
     ST.CarName = "Maruti Waganor";
     ST.CarPrice = "4 lakhs";
     ST.CarModel = "VXI";
     ST.CarColor = "Brown";
     ST.CarName = "Maruti Swift";
     ST.CarPrice = "5 lakhs";
     ST.CarModel = "VXI";
     ST.CarColor = "Red";
     li.Add(ST);
     li.Add(ST1);
     return li;
 }