public ActionResult Index5(int id) { sampleEntityEmployee db = new sampleEntityEmployee(); Employee employee = db.Employees.Single(x => x.Id == id); ViewBag.EmployeeData = employee; return(View(employee)); }
public ActionResult Index7() { sampleEntityEmployee db = new sampleEntityEmployee(); return(View(db.Employees.ToList())); }