public async Task <List <Profile> > GetAll() { var profiles = await _profileAccess.GetAll(); var documents = await _documentAccess.GetAll(); profiles.ForEach((profile) => { profile.Cv = documents.Find(g => g.DocumentId == profile.DocumentId_CV); profile.Photo = documents.Find(g => g.DocumentId == profile.DocumentId_Photo); }); return(profiles); }
public async Task <List <Document> > GetAll() { return(await _documentAccess.GetAll()); }