Ejemplo n.º 1
0
        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));
        }
Ejemplo n.º 2
0
        public IActionResult EmployeeAdministrative(int?AdministrativeEmployeeId)
        {
            switch (AdministrativeEmployeeId)
            {
            case 1:
                return(View("Index"));

            case 2:
                var model = _permitService.getEmployeePermits();
                return(View("PermitEmployeeList", model));
            }
            return(View());
        }