public IViewComponentResult Invoke(int id) //id alanı UserId ' yi temsil etmektedir. { var employee = employeeService.getEmployeeUser(id); var myPermits = permitService.getEmployeePermits(employee.Id); return(View("../MyProfile/MyPermits", myPermits)); }
public IActionResult EmployeeAdministrative(int?AdministrativeEmployeeId) { switch (AdministrativeEmployeeId) { case 1: return(View("Index")); case 2: var model = _permitService.getEmployeePermits(); return(View("PermitEmployeeList", model)); } return(View()); }