예제 #1
0
 public async Task <string> GetTechniqueAsync(string keyword)
 {
     try
     {
         var exampleRequester = new HttpRequests();
         var url = "https://culinarycompaniontechniques20200427203903.azurewebsites.net/Techniques?search=";
         url += keyword;
         return(await exampleRequester.GetAsync(url));
     }
     catch
     {
         return("Nope");
     }
 }
 public async Task <string> GetAsync(string keyword)
 {
     try
     {
         var exampleRequester = new HttpRequests();
         var url = "https://culinarycompaniongrocerlink.azurewebsites.net/grocerlink?keyword=";
         url += keyword;
         return(await exampleRequester.GetAsync(url));
     }
     catch (Exception e)
     {
         return(e.ToString());
     }
 }