public ActionResult Index() { var tree = treeService.GetTreeById(1); //this.test(); var msg = ""; if (tree.HasError) { msg += tree.Exception; } else { if (tree.Result != null) { msg += tree.Result.Description; } else { msg += "NULL"; } } ViewBag.Message = "Tree data:" + msg; return(View()); }