public class EmployeeController : Controller
{
//
// GET: /Employee/
public ActionResult Details(int id)
{
EmployeeContext employeeContext = new EmployeeContext();
Employee employee = employeeContext.Employees.SingleOrDefault(x => x.EmployeeId == id);
return View(employee);
}
}
//here i am getting only one row with respect to id .. how can i get the whole rows from the table ?and how can i view that on the view page?
Index.cshtmlpage?