Skip to content

Commit

Permalink
removed ViewContext.ViewBag
Browse files Browse the repository at this point in the history
  • Loading branch information
maxtoroq committed May 19, 2020
1 parent e6f0382 commit d61872e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/Xcst.AspNet/Framework/ViewContext.cs
Expand Up @@ -44,9 +44,6 @@ public class ViewContext : ControllerContext {
set => HttpContext.Items[_formContextKey] = value;
}

public dynamic ViewBag => _ViewBag
?? (_ViewBag = new DynamicViewDataDictionary(() => ViewData));

[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly", Justification = "The property setter is only here to support mocking this type and should not be called at runtime.")]
public virtual ViewDataDictionary/*?*/ ViewData { get; set; }

Expand Down

0 comments on commit d61872e

Please sign in to comment.