File size: 535 Bytes
8fb6238
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using ClipForge.Core.Entities;
using ClipForge.Core.Interfaces;
using ClipForge.Infrastructure.Data;
using Microsoft.EntityFrameworkCore;

namespace ClipForge.Infrastructure.Repositories;

public class VideoScriptRepository : BaseRepository<VideoScript>, IVideoScriptRepository
{
    public VideoScriptRepository(AppDbContext context) : base(context) { }

    public async Task<VideoScript?> GetByIdeaIdAsync(Guid ideaId, CancellationToken ct = default)
        => await _dbSet.FirstOrDefaultAsync(s => s.VideoIdeaId == ideaId, ct);
}