Exemple #1
0
        public ActionResult Index(string sortOrder, string searchString)
        {
            ViewBag.NameSortParm = string.IsNullOrEmpty(sortOrder) ? "name_desc" : "";
            ViewBag.IdSortParm   = sortOrder == "Id" ? "id_desc" : "Id";
            List <Variant> variants = _vRepository.LoadList(sortOrder, searchString);

            ViewBag.SelectedType = "Variant";
            ViewBag.Sortable     = true;
            ViewBag.SearchString = searchString;
            return(View(variants));
        }