public async Task <CvViewModel> GetCvViewModel() { CvViewModel cvViewModel = new CvViewModel { PersonalDataViewModel = new PersonalDataViewModel() { Address = "Borbowiecka 3A/208", City = "Warszawa", PostCode = "00-728", FirstName = "Damian", LastName = "Dziura", PersonalPhotoLink = "/Assets/img/author_image.png" }, ContactDataViewModel = new ContactDataViewModel() { EmailAddress = "*****@*****.**", GitHubLink = "https://github.com/Dymekk208j", HomePageLink = "www.DamianDziura.pl", PhoneNumber = "+48 510-075-067" }, Projects = await GetProjectsViewModel(), Technologies = await _technologyLogic.GetTechnologiesToShowInCv(), Achievements = await _achievementLogic.GetAchievementsToShowInCvAsync(), EmploymentHistories = await _employmentHistoryLogic.GetEmploymentHistoriesToShowInCvAsync(), ExtraInformation = await _extraInformationLogic.GetExtraInformationToShowInCvAsync(), Educations = await _educationLogic.GetEducationsToShowInCvAsync() }; return(cvViewModel); }
public async Task <string> GetEmploymentHistoriesToShowInCv() { var employmentHistories = await _employmentHistoryLogic.GetEmploymentHistoriesToShowInCvAsync(); return(JsonConvert.SerializeObject(employmentHistories)); }