Esempio n. 1
0
        // GET: titles/Details/5
        public ActionResult Details(int?empNo, string title1)
        {
            Expression <Func <Title, bool> > titlePred = t => (t.EmpNo == empNo && t.Title1 == title1);
            var title = _titleService.FindTitle(titlePred).Result.FirstOrDefault();

            if (title == null)
            {
                return(RedirectToAction("Error", "Home"));
            }

            var employees = Common.GetEmployees(_employeeService);

            ViewBag.EmployeeList = employees;
            return(View(title));
        }