Пример #1
0
        public async Task <Dictionary <string, string> > GetAgenciesLogoes(List <string> agencycodes)
        {
            Dictionary <string, string> result;

            if (string.IsNullOrEmpty(User.UserAgency()))
            {
                result = await _iDMAppService.GetAgencyLogos(agencycodes);
            }
            else
            {
                var baseUrl = _rootConfiguration.APIConfiguration.IDM + "/";

                result = new Dictionary <string, string> {
                    { User.UserAgency(), User.AgencyLogo(baseUrl) }
                };
            }
            return(result);
        }