12 references to ViewBag
HtmlGenerationWebSite (2)
Controllers\Catalog_CacheTagHelperController.cs (2)
88
ViewBag
.ProductDealPercentage = dealPercentage;
89
ViewBag
.IsEnabled = isEnabled;
Microsoft.AspNetCore.Mvc.ViewFeatures (1)
Controller.cs (1)
24
/// Gets or sets <see cref="ViewDataDictionary"/> used by <see cref="ViewResult"/> and <see cref="
ViewBag
"/>.
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (4)
ControllerTest.cs (4)
43
controller.
ViewBag
.Hello = "goodbye";
45
controller.
ViewBag
.Another = "property";
50
Assert.Null(controller.
ViewBag
.Hello);
51
Assert.Equal("property", controller.
ViewBag
.Another);
MvcFormSample (2)
Controllers\HomeController.cs (2)
21
ViewBag
.EnableAntiforgery = antiforgery;
27
ViewBag
.EnableAntiforgery = antiforgery;
RazorWebSite (3)
Controllers\ViewNameSpecification_HomeController.cs (3)
64
ViewBag
.Partial = "NonSharedPartial";
70
ViewBag
.Partial = "NonSharedPartial.cshtml";
76
ViewBag
.Partial = "~/Views/ViewNameSpecification_Home/NonSharedPartial.cshtml";