You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2018. It is now read-only.
Currently, to get the model from a ViewResult, you have direct property .Model. On the other hand PartialViewResult does not have such property and to access the model, you need to write .ViewData?.Model. I believe both classes should be consistent in their public properties.
The text was updated successfully, but these errors were encountered:
* Added consistent model property/tests to ViewResult, PartialViewResult, ViewComponentResult. This resolves#4813.
* Removed unnecessary model asserts
* Removed redundant model checking
Currently, to get the model from a
ViewResult
, you have direct property.Model
. On the other handPartialViewResult
does not have such property and to access the model, you need to write.ViewData?.Model
. I believe both classes should be consistent in their public properties.The text was updated successfully, but these errors were encountered: