3
Answers

CS0135: ‘?Model’ conflicts

Photo of Jaykumar Suthar

Jaykumar Suthar

6y
1.9k
1
when add link in cshtml as per below
@Html.ActionLink("Delete", "Delete", new { UserId = Model.UserId }, new { @class = "btn btn-bitbucket" })
 
then this error come , how to resolve.
CS0135: 'Model' conflicts with the declaration 'System.Web.Mvc.WebViewPage.Model'
 

Answers (3)