The model item passed into the dictionary is of type '...', but this dictionary requires a model item of type '...'
Does anyone know how to solve this error?
My controller class:
public class MapsController : Controller
{
public ActionResult Index()
{
return View(Project.Find(68));
}
//[AutoRefresh(DurationInSeconds = 30)]
public ActionResult Map()
{
var map = DeviceLocation.FindAll();
Locations l = new Locations();
l.locations = map;
return Json(l, JsonRequestBehavior.AllowGet);
}
}
My view
<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<App.Models.Project>>" %>