MyBookmark/Modules.Library.Database/Repositories/GenreRepository.cs
2024-09-23 03:00:50 +03:00

17 lines
530 B
C#

using Modules.Library.Database.Database;
using Modules.Library.Database.Database.Models.Genre;
using MongoDB.Driver;
namespace Modules.Library.Database.Repositories;
public class GenreRepository(MongoDbContext context) : RepositoryBase<Genre>(context)
{
protected override IMongoCollection<Genre> GetCollections(MongoDbContext context) => context.Genres;
/*
protected override async Task<bool> SoftDeleteAsync(Genre entity)
{
//entity.Delete();
return await UpdateAsync(entity);
}
*/
}