Exemplo n.º 1
0
        public virtual ActionResult Index(ColourDescViewModel viewModel)
        {
            ValidateIsAdmin();

            viewModel.SearchResults = Search(viewModel.Criteria);

            return View(viewModel);
        }
Exemplo n.º 2
0
        public virtual ActionResult Index()
        {
            ValidateIsAdmin();

            var viewModel = new ColourDescViewModel();

            return View(viewModel);
        }