public async Task <List <ContactReferenceVM> > GetAllContactReferencesAsync(CancellationToken cancellationToken = default) { return(await DataIncludingDeleted.Select(c => new ContactReferenceVM() { Id = c.Id, Name = c.Name, IsDeleted = (c.Deleted != null) }).ToListAsync(cancellationToken)); }
public List <Contact> GetAllIncludingDeleted() { return(DataIncludingDeleted.Include(GetLoadReferences).ToList()); }