Exemplo n.º 1
0
        public ActionResult Add()
        {
            var model = new NewVehicleViewModel();

            model.SetMakes(repo.GetAllMakes());
            model.SetModels(repo.GetAllModels());
            model.SetPurchaseTypes(repo.GetAllPurchaseTypes());
            return(View(model));
        }