//
        // GET: /Catalog/Details/5
        public ActionResult Details(int id)
        {
            /* var car = catalogDB.Cars.Find(id);*/
            CatalogDAL dal = new CatalogDAL();
            var car = dal.findCarsbyID(id);

            return View(car);
        }
 //
 // GET: /Catalog/Browse?brand=BMW
 public ActionResult Browse(string brand)
 {
     //Retrieve Brand and its Associated Cars from database
     /*var brandModel = catalogDB.Brands.Include("Cars")
         .Single(b => b.Name == brand);*/
     CatalogDAL dal = new CatalogDAL();
     var brandModel = dal.browseBrand(brand);
     return View(brandModel); ;
 }
        public ActionResult BrandMenu()
        {
            /*var brands = catalogDB.Brands.ToList();*/

            CatalogDAL dal = new CatalogDAL();
            var brands = dal.BrandsToList();

            return PartialView(brands);
        }
 public void BrandsToListTest()
 {
     CatalogDAL target = new CatalogDAL(); // TODO: Initialize to an appropriate value
     // List<Brand> expected = null; // TODO: Initialize to an appropriate value
     List<Brand> actual;
     actual = target.BrandsToList();
     Assert.IsNotNull(actual);
     // Assert.Inconclusive("Verify the correctness of this test method.");
 }
        //
        // GET: /Catalog/
        public ActionResult Index()
        {
            /* var brands = catalogDB.Brands.ToList();
            {
                new Brand { Name = "BMW" };
                new Brand { Name = "Mercedes" };
                new Brand { Name = "VW" };
                new Brand { Name = "Audi" };
                new Brand { Name = "Ford" };
                new Brand { Name = "Fiat" };
                new Brand { Name = "Honda" };
                new Brand { Name = "Toyota" };
                new Brand { Name = "Mazda" };
                new Brand { Name = "Hyunday" };
            };*/

            CatalogDAL dal = new CatalogDAL();
            var brands = dal.BrandsToList();
            return View(brands);
        }
 public void CatalogDALConstructorTest()
 {
     CatalogDAL target = new CatalogDAL();
     // Assert.Inconclusive("TODO: Implement code to verify target");
 }