public EmployeeEntity GetEmployeeInfo(EmployeeEntity employee)
        {
            EmployeeEntity entity = new EmployeeEntity();
              Guid id = Service.GetUserByName(employee.username).UserId;
              EM_Employee   emp = Service.GetEmployee(id);

              return AssembleEntity(emp);
        }
        /// <summary>
        /// Gets the employee info.
        /// </summary>
        /// <param name="employee">The employee.</param>
        /// <returns></returns>
        public EmployeeEntity GetEmployeeInfo(EmployeeEntity employee)
        {
            Guid id = Service.GetUserByName(employee.username).UserId;
               employee.ExternalId = Service.GetEmployeeExternalId(id);

               EmployeeEntity  entity = new EmployeeEntity();
               entity = EmployeeAdaper.GetEmployeeInfo(employee.ExternalId);

               return entity;
        }
        /// <summary>
        /// Assembles the entity.
        /// </summary>
        /// <param name="employee">The employee.</param>
        /// <returns></returns>
        private EmployeeEntity AssembleEntity(EM_Employee employee)
        {
            EmployeeEntity entity = new EmployeeEntity();

              entity.Address = employee.Address;
              entity.Email = employee.Email;
              entity.FirstName = employee.FirstName;
              entity.LastName = employee.LastName;
              entity.Phone = employee.Phone;

              return entity;
        }
        /// <summary>
        /// Assembles the entity.
        /// </summary>
        /// <param name="employee">The employee.</param>
        /// <returns></returns>
        private static EmployeeEntity AssembleEntity(Employee employee)
        {
            EmployeeEntity entity = new EmployeeEntity();

               entity.Address = employee.Address == null ? "" : employee.Address;
               entity.Email = employee.Email == null ? "" : employee.Email;
               entity.ExternalId = employee.NIC == null ? "" : employee.NIC;
               entity.FirstName = employee.FirstName== null ? "" : employee.FirstName;
               entity.LastName = employee.LastName== null ? "" : employee.LastName;
               entity.Phone = employee.Phone== null ? "" : employee.Phone;

               return entity;
        }