I have a partial view with some text that can be modified using the ViewBag
@(ViewBag.FooText ?? "foo")
I populate ViewBag.FooText in the parent view from a resource file:
@
{
ViewBag.FooText = MyResources.Common.FooText
}
My question is whether this is the best place to populate this property (and all other text resources) or would the related controller, or somewhere else, be more appropriate?