Controller class not available in Add View ASP.NET MVC

Posted by Tassadaque on Stack Overflow See other posts from Stack Overflow or by Tassadaque
Published on 2010-05-11T08:40:48Z Indexed on 2010/05/11 8:44 UTC
Read the original article Hit count: 298

Filed under:
|
|

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());
    }

}

}

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about mvc