Ejemplo n.º 1
0
        public ActionResult Index(string filter = "active")
        {
            var list = _readService.GetAllActive();

            switch (filter)
            {
            case "all":
                list = _readService.GetAll();
                break;

            case "inactive":
                list = _readService.GetAllInactive();
                break;
            }
            return(View(list));
        }