Example #1
0
        public virtual ActionResult Index(BrandViewModel viewModel)
        {
            ValidateIsAdmin();

            viewModel.SearchResults = Search(viewModel.Criteria);

            return View(viewModel);
        }
Example #2
0
        public virtual ActionResult Index()
        {
            ValidateIsAdmin();

            var viewModel = new BrandViewModel();

            return View(viewModel);
        }