2
Answers

The model item passed into the dictionary is of type 'CashMa

Anjali Khan

Anjali Khan

7y
206
1

hi frnds

 

i am display the details using id in a html table but getting the error like
 
The model item passed into the dictionary is of type 'CashManagementSystemUtility.ViewModel.IncidentSummaryViewModel', but this dictionary requires a model item of type 'System.Collections.Generic.IEnumerable`1
 
 
how to solve this error
 
my view like this  

@model IEnumerable<Registerdatautility.ViewModel.RegisterViewModel>

@{

Layout = "~/Views/Shared/_LayoutDashboard.cshtml";

}

 
Answers (2)