Beispiel #1
0
        public async Task <FullProfile> GetFullProfile(Profile profile)
        {
            EmployerInfo?employerInfo = null;

            if (!string.IsNullOrWhiteSpace(profile.EmployerName))
            {
                employerInfo = await _employerService.FindEmployer(profile.EmployerName);
            }

            return(new FullProfile
            {
                Username = profile.Username,
                PersonalInfo = profile.PersonalInfo,
                EmployerInfo = employerInfo
            });
        }