Пример #1
0
 public async Task <ActionResult <IEnumerable <Domain> > > GetDomains()
 {
     try
     {
         string token = Tools.getToken(configuration);
         return(await ProfessionalAPIProvider.getDomains(token));
     }
     catch
     {
         return(NotFound("AWWWWWWWWWWW"));
     }
     // return Ok("Rak SUR");
 }
Пример #2
0
        public async Task <ActionResult <List <Domain> > > GetDomains()
        {
            try
            {
                var auth = Request.Headers["Authorization"];

                // var authHeader = Request.Headers.Get("Authorization");
                return(await ProfessionalAPIProvider.getDomains(auth));
            }
            catch
            {
                return(NotFound());
            }
        }