AcaMate_API/Program/Repositories/V1/ClassRepository.cs
SEAN-59 82d8afcfb7 [] Class 관련 로직 추가
1. 컨트롤러, 서비스(인터페이스), 레포지토리(인터페이스) 추가
2. scoped 등록
3. 클래스 관련 모델 등록
4. ClassInfo API 등록
2025-06-20 17:59:03 +09:00

25 lines
776 B
C#

using Back.Program.Common.Data;
using Back.Program.Models.Entities;
using Back.Program.Repositories.V1.Interfaces;
using Microsoft.EntityFrameworkCore;
namespace Back.Program.Repositories.V1;
public class ClassRepository(AppDbContext context): IClassRepository
{
public async Task<Class_Info?> FindClassInfo(string cid)
{
return await context.Class_Info.FirstOrDefaultAsync(c => c.id == cid);
}
//return _context.Login.FirstOrDefaultAsync(l => l.sns_type == accType && l.sns_id == snsId);
public async Task<Class_Attendance?> FindClassAttendance(string cid, string uid)
{
throw new NotImplementedException();
}
public async Task<Class_Map?> FindClassMap(string cid)
{
throw new NotImplementedException();
}
}