Example #1
0
 public ActionResult Register()
 {
     try
     {
         // Register the BusinessDocuments API
         WebAPIHelper.RegisterWebAPIService(this.HttpContext, "/api/BusinessDocuments");
         return(Json(new { message = "Web API registered" }));
     }
     catch (Exception ex)
     {
         return(Json(ex));
     }
 }