Hi all,
I have this error in my Index.cshtml for the following code:
Here the model is implemented:PHP Code:@Html.DropDownListFor(p => p.Make_ID, ViewBag.Vehicle_Make as SelectList, "Select Vehicle", new { id = "ContID" })
Here's the GoogleMapViewModel.cs code:PHP Code:@model IEnumerable<GoogleMap.Models.GoogleMapViewModel>
The definition is there but VS gives me the error. How do I fix it?PHP Code:using GoogleMap.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace GoogleMap.Models
{
public class GoogleMapViewModel
{
public string Model_Name { get; set; }
public int Model_ID { get; set; }
public string Make_Name { get; set; }
public int Make_ID { get; set; }
public int User_ID { get; set; }
public Nullable<double> MapLat { get; set; }
public Nullable<double> MapLong { get; set; }
public virtual User User { get; set; }
public virtual Vehicle_Details Vehicle_Details { get; set; }
public virtual Vehicle_Make Vehicle_Make { get; set; }
}
}
Thank you!




Reply With Quote
