Exemplo n.º 1
0
 public ActionResult DrugSearchByNDA(string id)
 {
     try
     {
         string HealthDataInitiativeApiKey = ConfigurationManager.AppSettings["HealthDataInitiativeApiKey"].ToString();
         string url = string.Format("https://api.carepass.com/hhs-directory-api/applications/{0}?apikey={1}", id, HealthDataInitiativeApiKey);
         var    webRequestClient = new WebRequestHelper();
         ViewBag.DrugResult = webRequestClient.GetJsonResponse(url);
     }
     catch
     {
         ViewBag.DrugResult = "";
     }
     return(View());
 }