Exemple #1
0
        public ActionResult AddRimBrand(AddRimBrandViewModel vm)
        {
            tblRimBrandsService service = new tblRimBrandsService();

            service.addBrand(vm.newBrand);
            return(RedirectToAction("ManageRims"));
        }
Exemple #2
0
        public ActionResult AddRimBrand()
        {
            tblRimBrandsService  service = new tblRimBrandsService();
            AddRimBrandViewModel vm      = new AddRimBrandViewModel();

            vm.brands = service.getBrands();
            return(View(vm));
        }