using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using MVCWebApp.Models;
namespace MVCWebApp.Controllers
{
public class EmployeeController : Controller
{
// GET: Employee
public ActionResult Details(int id)
{
EmployeeContext employeeContext = new EmployeeContext();
EmployeeModel employees = employeeContext.Employee.Single(emp => emp.ID==id);
return View(employees);
}
}
}
Error:


Vinay SinghRank #604 · 4K reputationPosted Apr 17, 2020, 5:04 AM EDT
Amin Memar185 reputationPosted Apr 16, 2020, 12:23 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Apr 16, 2020, 11:35 PM EDT