Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

I can't add a view for HomeController Action index

$
0
0

I can't add a view for HomeController Action index to control my database

I try to update (Package source) and (Microsoft Visual Studio Offline Packages) in nuget Manager like picture 2, but it's useless.

my HomeController code:

namespace Outfit_Web.Controllers{  public class HomeController : Controller  {    user_dbEntities db = new user_dbEntities();    public ActionResult Index()    {        var user = db.user_list.OrderBy(m => m.user_Id).ToList();        return View(user);    }    public ActionResult About()    {        ViewBag.Message = "Your application description page.";           return View();    }    public ActionResult Contact()           {        ViewBag.Message = "Your contact page.";        return View();    }  }}

Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>