public IActionResult Details(int id)
        {
            if (id < 1)
            {
                return(BadRequest());
            }

            try
            {
                var protocol       = protocolService.GetProtocolById(id);
                var mappedProtocol = ProtocolMapper.MapToViewModel(protocol, EmployeeMapper.MapToViewModel(protocol.Employee), OrderMapper.MapToViewModel(protocol.Order));
                var details        = new ProtocolDetailsViewModel(EmployeeMapper.MapManyToViewModel(employeeService.GetEmployees()), OrderMapper.MapManyToViewModel(orderService.GetOrders()), mappedProtocol);

                return(View(details));
            }
            catch (Exception ex)
            {
                return(NotFound(ex));
            }
        }
        public IActionResult Details(int id)
        {
            if (id < 1)
            {
                return(NotFound());
            }
            try
            {
                var employee = (employeeService.GetEmployeeById(id));

                var protocols = new List <ProtocolViewModel>();
                if (employee.Protocols != null && employee.Protocols.Any())
                {
                    protocols = ProtocolMapper.MapManyToViewModel(employee.Protocols).ToList();
                }

                var orders = new List <OrderViewModel>();
                if (employee.Orders != null && employee.Orders.Any())
                {
                    orders = OrderMapper.MapManyToViewModel(employee.Orders).ToList();
                }

                var mappedEmployee = EmployeeMapper.MapToViewModel(employee, employee.EmployeesQualifications, protocols, orders);

                var result = new EmployeeDetailsViewModel(QualificationMapper.MapManyToViewModel(qualificationService.GetQualifications()).ToList())
                {
                    Employee = mappedEmployee,
                };

                return(View(result));
            }
            catch (Exception ex)
            {
                return(NotFound(ex));
            }
        }