Hi I have created the following controller i want to add view that should have the data access class UserMagnament.Controller.menuitems but when i add view by right clicking on view folder,it is not showing "UserMagnament.Controller.menuitems" in add data class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using UserManagement.Models;
namespace UserManagement.Controllers
{
public class menuitems
{
EvoLetDataContext db1 = new EvoLetDataContext();
public menuitems()
{ }
public IQueryable<UMUserType> menuitems()
{
return db1.UMUserTypes;
//this.Packages = _SysPackage;
//this.Modules = _SysModule;
}
public List<SysPackage> Packages { get; private set; }
public List<SysModule> Modules { get; private set; }
}
public class Default1Controller : Controller
{
//
// GET: /Default1/
public ActionResult Index()
{
return View(new menuitems());
}
}
}