00kristian_BDSA2021_Huawei/Core/Project/IProjectRepository.cs

using System.Collections.Generic;
using System.Threading.Tasks;

namespace Core {
public interface IProjectRepository
    {
 Task<IReadOnlyCollection<ProjectDTO>> ReadAll();

        Task<(Status, ProjectDTO)> Read(int id);
        Task<Status> Update(int id, ProjectDTO project);
        Task<IEnumerable<string>> ReadAllKeywords();
        Task<(Status, IEnumerable<ProjectDTO>)> Match(int id);
        Task<IReadOnlyCollection<ProjectDTO>> Search(string searchString);
    }
}