title: Inject a statement from the Controller
body: <p>I'm writing an MVC 3 app and I have tried to code a control in the Controller (due to permissions, different menu items will be visible for different users) and use the object in the Razor page.  For example, in the <code>Controller</code> I do something like:</p>
  
  <pre><code>public ActionResult Index()
  {
      var menu = "@(Html.Telerik().Menu().Name("menu").Items("menus =&gt; { menus.Add().Text("Home").Action("Index", "Home"); menus.Add().Text("Deliveries").Action("Index", "Delivery"); }))";
  
      var model = new MenuModel()
      {
          Menu = menu
      };
  
      return View(model);
  }
  </code></pre>
  
  <p>And in the <code>View</code> I try to render the Menu using <code>@Model.Menu</code> but I just get the <code>string</code> value rather than an actual menu.  Is what I'm trying to do possible?</p>