public async Task <IEnumerable <Component> > GetAllAsync() { var items = await _repository.GetAllAsync(); return(items.Select(ToComponent)); }