Example #1
0
        // GET: Employee/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var employee = await _employeeData.GetEmployeeDetails((int)id);

            if (employee == null)
            {
                return(NotFound());
            }

            return(View(employee));
        }
Example #2
0
 public Employee GetEmployeeDetails(int id)
 {
     return(_EmployeeDataAccess.GetEmployeeDetails(id));
 }