I have this action method in C#:
public ActionResult Index() { ViewBag.Message = \"Hello\"; return View(); }
And this
Instead of
x?ViewBag <- "Hello"
Try:
x.ViewBag?Message <- "Hello"