12 references to ViewBag
HtmlGenerationWebSite (2)
Controllers\Catalog_CacheTagHelperController.cs (2)
88ViewBag.ProductDealPercentage = dealPercentage; 89ViewBag.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)
43controller.ViewBag.Hello = "goodbye"; 45controller.ViewBag.Another = "property"; 50Assert.Null(controller.ViewBag.Hello); 51Assert.Equal("property", controller.ViewBag.Another);
MvcFormSample (2)
Controllers\HomeController.cs (2)
21ViewBag.EnableAntiforgery = antiforgery; 27ViewBag.EnableAntiforgery = antiforgery;
RazorWebSite (3)
Controllers\ViewNameSpecification_HomeController.cs (3)
64ViewBag.Partial = "NonSharedPartial"; 70ViewBag.Partial = "NonSharedPartial.cshtml"; 76ViewBag.Partial = "~/Views/ViewNameSpecification_Home/NonSharedPartial.cshtml";