public async Task <ActionResult> Index() { try { await _ls.AddStream("test", "test", new StreamItem { Message = "test" }); } catch (Exception ex) { Debug.Print(ex.Message); } ViewBag.Title = "Home Page " + _provider.GetType().FullName; ViewBag.ServiceInstance = _service.GetType().FullName; try { var result = _service.Test("TestMessage"); ViewBag.ServiceInstance += $". Response: {result}"; } catch (Exception e) { ViewBag.ServiceInstance += $". Error: {e.Message}"; } return(View()); }