using Journal.Core.Models; namespace Journal.Core.Repositories; public interface IFragmentRepository { List GetAll(); Fragment? GetById(Guid id); void Add(Fragment fragment); bool Remove(Guid id); bool Update(Guid id, string? type = null, string? description = null, IEnumerable? tags = null, DateTimeOffset? time = null); List GetByTag(string tag); List GetByType(string type); List Search(string? type = null, string? tag = null, DateTimeOffset? timeAfter = null); }