Пример #1
0
        private List <string> getRouteList()
        {
            List <string> ReleaseRouteList = new List <string>();

            ReleaseRouteList.Add("/css");
            ReleaseRouteList.Add("/dist");
            ReleaseRouteList.Add("/js");
            ReleaseRouteList.Add("/public");
            ReleaseRouteList.Add("/websites");

            ReleaseRouteList.Add("/api");
            //ReleaseRouteList.Add("/swagger");
            ReleaseRouteList.Add("/elite");
            ReleaseRouteList.Add("/404");
            ReleaseRouteList.Add("/error");
            ReleaseRouteList.Add("/DbState");

            var dbCountryList = oWebsiteService.GetEliteReleaseCountryList();

            foreach (string websitePath in dbCountryList)
            {
                ReleaseRouteList.Add($"/{websitePath.ToLower()}/elite");
            }
            return(ReleaseRouteList);
        }
Пример #2
0
        private List <string> getEliteReleaseCountryList()
        {
            List <string> IgnoreCountryList = new List <string>();
            var           dbCountryList     = oWebsiteService.GetEliteReleaseCountryList();

            foreach (var item in dbCountryList)
            {
                IgnoreCountryList.Add($"/{item}/elite");
            }
            return(IgnoreCountryList);
        }