// GET: Files
        public ActionResult Index(string sortOrder, string text, int?page)
        {
            var symbols = _symbolService.GetSymbols(text);

            switch (sortOrder)
            {
            case "symbolname_desc":
                symbols = symbols.OrderByDescending(s => s.Name).ToList();
                break;

            case "owner":
                symbols = symbols.OrderBy(s => s.Owner).ToList();
                break;

            case "owner_desc":
                symbols = symbols.OrderByDescending(s => s.Owner).ToList();
                break;

            case "theme_desc":
                symbols = symbols.OrderByDescending(s => s.Theme).ToList();
                break;

            case "theme":
                symbols = symbols.OrderBy(s => s.Theme).ToList();
                break;

            default:
                symbols = symbols.OrderBy(s => s.Name).ToList();
                break;
            }
            if (string.IsNullOrEmpty(sortOrder))
            {
                sortOrder = "symbolname";
            }

            ViewBag.SymbolnameSortParm = sortOrder == "symbolname" ? "symbolname_desc" : "symbolname";
            ViewBag.Owner      = sortOrder == "owner" ? "owner_desc" : "owner";
            ViewBag.Theme      = sortOrder == "theme" ? "theme_desc" : "theme";
            ViewBag.SortOrder  = sortOrder;
            ViewBag.text       = text;
            ViewBag.SymbolsAll = symbols;
            ViewBag.Page       = 0;

            int pageSize   = 30;
            int pageNumber = (page ?? 1);

            ViewBag.IsAdmin = false;
            if (Request.IsAuthenticated)
            {
                ViewBag.IsAdmin = _authorizationService.IsAdmin();
            }

            return(View(symbols));
        }
        public List <Models.Api.Symbol> GetSymbols([FromUri] string text = null)
        {
            var symbolFiles = ConvertRegister(_symbolService.GetSymbols(text));

            return(symbolFiles);
        }