我要重新整理结构,这是这阶段的保存
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Entities.Contracts;
|
||||
using Entities.DTO;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using SharedDATA.Api;
|
||||
|
||||
@@ -9,6 +10,8 @@ namespace TechHelper.Server.Repository
|
||||
private readonly IUnitOfWork _unitOfWork;
|
||||
private readonly IRepository<Assignment> _assignmentRepo;
|
||||
private readonly IRepository<AssignmentGroup> _assignmentGroupRepo;
|
||||
private readonly IRepository<QuestionGroup> _questionGroupRepo;
|
||||
private readonly IRepository<Question> _questionRepo;
|
||||
|
||||
public ExamRepository(IUnitOfWork unitOfWork)
|
||||
{
|
||||
@@ -80,5 +83,14 @@ namespace TechHelper.Server.Repository
|
||||
{
|
||||
await _assignmentRepo.InsertAsync(assignment);
|
||||
}
|
||||
|
||||
|
||||
public async Task AddAsync(QuestionGroupDto qg)
|
||||
{
|
||||
if(qg.ValidQuestionGroup)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user