public async Task AddProjectToResume(string personEmail, ProjectsHistory project) { Resume toUpdate = await this.GetCompleteResumeByPersonEmail(personEmail, false); toUpdate.ProjectsHistory = project; await this.SaveChangesAsync(); }
private static ProjectsHistory GetProjectsHistory() { List <ContentSubItem> contentSubItems = new List <ContentSubItem>(); List <ContentItem> contentItems = new List <ContentItem>(); ContentSubItem contentSubItem1 = new ContentSubItem() { SubItemContent = "Using Keras, Tensorflow and the Vanguard Stock API to analyze and predict stock market and cryptocurrency trends." }; contentSubItems.Add(contentSubItem1); ContentItem contentItem = new ContentItem() { ExperienceItemContent = "C# Stock Analysis Program", ExperienceSubItems = contentSubItems }; contentItems.Add(contentItem); ProjectsHistory ph = new ProjectsHistory() { ExperienceItems = contentItems }; return(ph); }