C#C
C#3y ago
Messiah

❔ Razor pages view

In this snippet
 @foreach (var cafe in Model.CompanyCafes)
    {        
        @await Html.PartialAsync("Cafe", cafe, new ViewDataDictionary(this.ViewData) { { "ShowImage", true } });        
    }

Where does razor pull the Model.CompanyCafes from? The MS docs regarding model binding is a bit confusing as it assumes I know a lot beforehand
Was this page helpful?