ViewBag または ViewData を介してビューにデータを渡すことができないようです。nullで戻ってきます。
ViewResult コード:
    public ViewResult EditProduct(Guid id)
    {
        var product = _repository.Products.FirstOrDefault(x => x.ID == id);
        ViewData["Categories"] = _repository.Categories;
        ViewData["CategoryList"] = _repository.Categories.Select(x => new SelectListItem { Text = x.Name, Value = x.ID.ToString(), Selected = product.ID == x.ID });
        ViewBag.Test = "Hello";
        return View(product);
    }
これはかみそりのコードです:
@model NightingalecrossMVC.Domain.Entities.Product
@{
    var test = ViewData.Eval("CategoryList");
    var test2 = ViewBag.Test;
    ViewBag.Title = "Edit Treatment";
    AjaxOptions ajaxOpts = new AjaxOptions
    {
        UpdateTargetId = "saveData",
        HttpMethod = "Post",
        LoadingElementId = "loader"
    };
}
なぜこうなった?他のビューでも問題なく動作しますか?!