public EmployeeRoleDTO GetEmployeeRoleById(int employeeRoleId)
        {
            EmployeeRoleDTO employeeRoleDTO = null;
            var             employeeRole    = unitOfWork.EmployeeRoleRepository.GetById(employeeRoleId);

            if (employeeRole != null)
            {
                employeeRoleDTO = EmployeeRoleConvertor.ConvertToEmployeeRoleDto(employeeRole);
            }
            return(employeeRoleDTO);
        }
        public List <EmployeeRoleDTO> GetAllEmployeeRoles()
        {
            List <EmployeeRoleDTO> employeeRoleList = new List <EmployeeRoleDTO>();
            var employeeRoles = unitOfWork.EmployeeRoleRepository.GetAll();

            if (employeeRoles != null)
            {
                foreach (var employee in employeeRoles)
                {
                    employeeRoleList.Add(EmployeeRoleConvertor.ConvertToEmployeeRoleDto(employee));
                }
            }

            return(employeeRoleList);
        }