diff --git a/TechHelper.Server/Repository/ExamRepository.cs b/TechHelper.Server/Repository/ExamRepository.cs index 489cdc8..191b525 100644 --- a/TechHelper.Server/Repository/ExamRepository.cs +++ b/TechHelper.Server/Repository/ExamRepository.cs @@ -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 _assignmentRepo; private readonly IRepository _assignmentGroupRepo; + private readonly IRepository _questionGroupRepo; + private readonly IRepository _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) + { + + } + } } } diff --git a/TechHelper.Server/Services/ExamService2.cs b/TechHelper.Server/Services/ExamService2.cs index ead8236..a679c9b 100644 --- a/TechHelper.Server/Services/ExamService2.cs +++ b/TechHelper.Server/Services/ExamService2.cs @@ -86,6 +86,14 @@ namespace TechHelper.Server.Services return _mapper.Map>(assignments); } + public async Task AddAsync(QuestionGroupDto qg) + { + if (qg.ValidQuestionGroup) + { + var mapQG = _mapper.Map(qg); + } + } + public Task GetAllAsync(QueryParameter query) { throw new NotImplementedException();