Example #1
0
        public ActionResult Index5(int id)
        {
            sampleEntityEmployee db       = new sampleEntityEmployee();
            Employee             employee = db.Employees.Single(x => x.Id == id);

            ViewBag.EmployeeData = employee;
            return(View(employee));
        }
Example #2
0
        public ActionResult Index7()
        {
            sampleEntityEmployee db = new sampleEntityEmployee();

            return(View(db.Employees.ToList()));
        }