Followed link
Error: the type or Namespace Name customer could not be found
below is index code
@model IEnumerable<Customer>
@{
Layout = null;
WebGrid webGrid = new WebGrid(source: Model, canPage: true, canSort: false);
}
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="width=device-width" />
<title>
INDEX
</title>
</head>
<body>
</body>
</html>
Controller
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using WebApplication7.Models;
namespace WebApplication7.Controllers
{
public class HomeController : Controller
{
public ActionResult Index()
{
// GET: Home
using (SchoolEntities1 entities1 = new SchoolEntities1())
{
List<Customer1> customers1 = entities1.Customer_PerformanceCRUD("Select", null, null, null).ToList();
customers1.Insert(0, new Customer1());
return View(customers1.ToList());
}
}
}
}