예제 #1
0
        public override void InitializeFromOutput(GetEmployeeDetailsOutput output)
        {
            base.InitializeFromOutput(output);

            if (output.Profile != null)
            {
                var employee = new EmployeeFullResult();
                employee.InitializeFromOutput(output.Profile);
                Profile = employee;
            }
        }
예제 #2
0
        public override void InitializeFromOutput(GetEmployeeDetailsListOutput output)
        {
            base.InitializeFromOutput(output);

            if (Profiles != null && Profiles.Any())
            {
                Profiles.Clear();
            }
            else
            {
                Profiles = new List <EmployeeFullResult>();
            }

            if (output.Profiles != null && output.Profiles.Any())
            {
                Profiles.AddRange(output.Profiles.Select(x =>
                {
                    var employee = new EmployeeFullResult();
                    employee.InitializeFromOutput(x);
                    return(employee);
                }));
            }
        }