forked from AcaMate/AcaMate_API
1. 컨트롤러, 서비스(인터페이스), 레포지토리(인터페이스) 추가 2. scoped 등록 3. 클래스 관련 모델 등록 4. ClassInfo API 등록
25 lines
776 B
C#
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();
|
|
}
|
|
} |