public EmployeeDomain GetEmployeeById(int Id)
        {
            Employee employee = _employeeRepository.GetEmployeeById(Id);

            EmployeeDomain employeeDomain = RepositoryToDomainMapper(employee);

            return(employeeDomain);
        }
        private EmployeeDomain RepositoryToDomainMapper(Employee employee)
        {
            var employeeDomain = new EmployeeDomain();

            employeeDomain.EmpId     = employee.EmpId;
            employeeDomain.EmpName   = employee.EmpName;
            employeeDomain.EmpAge    = employee.EmpAge;
            employeeDomain.EmpEmail  = employee.EmpEmail;
            employeeDomain.EmpSalary = employee.EmpSalary;

            return(employeeDomain);
        }
        private List <EmployeeDomain> RepositoryToDomainMapper(List <Employee> employees)
        {
            var employeesDomain = new List <EmployeeDomain>();

            foreach (var employee in employees)
            {
                var employeeDomain = new EmployeeDomain();
                employeeDomain.EmpId     = employee.EmpId;
                employeeDomain.EmpName   = employee.EmpName;
                employeeDomain.EmpAge    = employee.EmpAge;
                employeeDomain.EmpEmail  = employee.EmpEmail;
                employeeDomain.EmpSalary = employee.EmpSalary;
                employeesDomain.Add(employeeDomain);
            }
            return(employeesDomain);
        }