public ActionResult AddRimBrand(AddRimBrandViewModel vm) { tblRimBrandsService service = new tblRimBrandsService(); service.addBrand(vm.newBrand); return(RedirectToAction("ManageRims")); }
public ActionResult AddRimBrand() { tblRimBrandsService service = new tblRimBrandsService(); AddRimBrandViewModel vm = new AddRimBrandViewModel(); vm.brands = service.getBrands(); return(View(vm)); }