using RackPeek.Domain.Persistence; using RackPeek.Domain.Resources; namespace RackPeek.Domain.UseCases; public interface IGetAllResourcesByKindUseCase : IResourceUseCase where T : Resource { public Task> ExecuteAsync(); } public class GetAllResourcesByKindUseCase(IResourceCollection repo) : IGetAllResourcesByKindUseCase where T : Resource { public async Task> ExecuteAsync() { return await repo.GetAllOfTypeAsync(); ; } }