Jignesh Kumar7y agoPosted Mar 15, 2019, 2:33 PMHi buka, You are returning only single model from you controller action method and in your view your are trying to use List So return list from your controller method Public ActionResult AllCategories() { return View('~yourview path', viewModel.ToList()); }
Jignesh KumarPosted Mar 15, 2019, 2:33 PM
Posted Mar 15, 2019, 7:48 AM
Posted Mar 15, 2019, 7:47 AM