MyBookmark/Modules.Library.Application/Gateways/IGenreGateway.cs
THE_KONDRAT 7b16d72329 ui and login
mongo => postgres
2024-11-03 16:08:39 +03:00

16 lines
596 B
C#

using Modules.Library.Domain.Entities.Genre;
namespace Modules.Library.Application.Gateways;
public interface IGenreGateway
{
public Task<List<Models.Genre>> GetList();
public Task<Genre> GetGenreById(Guid id);
public Task<IEnumerable<Genre>> GetGenreByIds(IEnumerable<Guid> genreIds);
public Task<Genre> GetGenre(string name);
public Task<bool> IsGenreExists(Guid id);
public Task<bool> IsGenreExists(string name, Guid? selfId = null);
public Task<Guid> Create(string name);
public Task SetName(Guid id, string name);
public Task<bool> Delete(Guid id);
}