BeckyBashfulblushes
New Member
Hi I getting this error:The model item passed into the dictionary is of type 'System.Collections.Generic.List`1[DBModel.Telemarketing]', but this dictionary requires a model item of type 'TWeb.Models.LoginModel'In _Layout.cshtml file i have \[code\]@Html.Partial("_LoginPartial") \[/code\]this partial login view is rendered in div on _layout page (it`s hides/shows with javaScripts )\[code\]@model TWeb.Models.LoginModel\[/code\]Then I have "Telemarketings" controller having view:\[code\]public class TelemarketingController : Controller{ private Entities db = new Entities(); // // GET: /Telemarketing/ public ActionResult Index() { return View(db.Telemarketings.ToList()); }\[/code\]When I click link in _Layout page\[code\]@Html.ActionLink("Telemarketingas", "Index", "Telemarketing", new{area="" },new{ })\[/code\]It throws an error written in top of the post.I am new in MVC, please help me.