Beispiel #1
0
        public virtual ActionResult Index(ColourDescViewModel viewModel)
        {
            ValidateIsAdmin();

            viewModel.SearchResults = Search(viewModel.Criteria);

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

            var viewModel = new ColourDescViewModel();

            return View(viewModel);
        }