protected virtual async Task ParseEntityAsync(TEntity entity) { Id = entity.Id; DateAdded = entity.DateAdded; DateUpdated = entity.DateUpdated; PropertiesGroups = (await _propertiesProvider.GetAsync(entity)) .Select(p => PropertiesGroup.Create(p, PropertiesProvider.GetSchema(p.Key))).ToList(); }
protected virtual Task ParseEntityAsync(TEntity entity) { Id = entity.Id; DateAdded = entity.DateAdded; DateUpdated = entity.DateUpdated; Title = entity.Title; PropertiesGroups = entity.Properties.Select(p => PropertiesGroup.Create(p, PropertiesProvider.GetSchema(p.Key))).ToList(); return(Task.CompletedTask); }