Example #1
0
 public ActionResult Create(SiteInfo siteInfo)
 {
     try {
         var list = Task.Run(async() => { return(await _monitoringService.AddSite(siteInfo)); }).Result;
         ViewBag.IsAdminPanel = true;
         return(PartialView("Table", list));
     }
     catch (Exception ex) {
         return(PartialView("Error", ex.Message));
     }
 }