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 SinghPosted Apr 17, 2020, 9:04 AM
Jignesh KumarPosted Apr 17, 2020, 3:35 AM
Amin MemarPosted Apr 16, 2020, 4:23 PM