//using Modules.Library.Application.Gateways;
//using Modules.Library.Database.Database;
//using Modules.Library.Domain.Entities;
//using MongoDB.Driver;

//namespace Modules.Library.Database.Repositories;

//public class MediaInfoGateway(MediaInfoRepository context) : IMediaInfoGateway
//{
//    public async Task<Guid> Create(MediaInfo mediaInfo)
//    {
//        /*
//        var titleModel = new Database.Models.Anime.AnimeTitle
//        {

//        };
//        */
//        var mediaInfoModel = new Database.Models.MediaInfo
//        {
//            Type = (Database.Models.MediaInfoType)mediaInfo.Type,
//            Url = mediaInfo.Url,
//        };
//        return await context.AddAsync(mediaInfoModel);
//    }

//    public Task<MediaInfo> GetById(Guid id)
//    {
//        return new Domain.Entities.MediaInfo();
//    }

//    public Task Update(MediaInfo title) => UpdateAsync(title);

//    protected override IMongoCollection<MediaInfo> GetCollections(MongoDbContext context) => context.MediaInfos;
//}