//// GET: Packages
        // Comment by circus
        //public ActionResult Index(int id)
        //{
        //    Session["NewServiceGarageId"] = id;
        //    var package = new PackagesServiceViewModel();
        //    package.CarTypes = _db.CarTypes.ToList();
        //    if (Session["SelectedCar"] != null)
        //    {
        //        var car = Session["SelectedCar"] as CarUser;
        //        var l = _db.CarTypes.Where(a => a.Id == car.Type).ToList();
        //        package.CarTypes = l;
        //    }
        //    package.Packages = null;
        //    return View(package);
        //}


        // GET: Packages
        // Added By circus
        public ActionResult Index(int id)
        {
            // Store Customer Seleted Garage in session
            Session["NewServiceGarageId"] = id;

            var model    = new PackagesServiceViewModel();
            var packages = _db.Packages.Include(p => p.Package_Services);

            model.Packages = packages;
            return(View(model));
        }
        public ActionResult IndexPost(int id)
        {
            Session["NewServiceCarTypeId"] = id;
            var ids = Convert.ToInt16(id);
            //var packages = _db.Packages.Include(p => p.Package_Services).Where(a => a.CarTypeId == ids);
            var packages         = _db.Packages.Include(p => p.Package_Services);
            var packageViewModel = new PackagesServiceViewModel();

            packageViewModel.CarTypes = _db.CarTypes.ToList();
            packageViewModel.Packages = packages;
            var package_services = new Package_Services();

            return(View("_Packages", packageViewModel));
        }
        // GET: AdhocCarService
        public ActionResult Index(int id)
        {
            Session["LinkCarId"] = id;
            var package = new PackagesServiceViewModel();

            package.CarTypes = db.CarTypes.ToList();
            if (Session["SelectedCar"] != null)
            {
                var car = Session["SelectedCar"] as CarUser;
                //var l = db.CarTypes.Where(a => a.Id == car.Type).ToList();
                var l = db.CarTypes.ToList();
                package.CarTypes = l;
            }
            package.Packages = null;
            return(View(package));
        }