Exemplo n.º 1
0
        public ActionResult About()
        {
            ViewBag.Message = "Your application description page.";
            List <Employee> employees = EmployeeManagement.GetAllEmployees(objISession);
            var             emp       = from t in employees
                                        where t.EmployeeId == 1
                                        select t;

            return(View(emp.FirstOrDefault()));
        }
        //
        // GET: /Employee/
        public ActionResult Index()
        {
            List <Employee> employees = EmployeeManagement.GetAllEmployees(objISession);

            return(View(employees));
        }