public async Task <IActionResult> GetAttemptsByTestId([FromRoute] CommonAPI_TestIdDTO testIdDTO)
        {
            var(errorCode, response) = await _attemptService.GetAttemptsByTestIdAndMemberId(testIdDTO, _workContext.MemberId.Value);

            return(this.ResultResponse(errorCode, response));
        }
        public async Task<IActionResult> GetAttemptsByTestId([FromRoute] CommonAPI_TestIdDTO testIdDTO)
        {
            var (errorCode, response) = await _attemptService.UserAPI_GetAttemptsByTestId(testIdDTO);

            return this.ResultResponse(errorCode, response);
        }
        public async Task <IActionResult> EditSections([FromRoute] CommonAPI_TestIdDTO testIdDTO, [FromBody] UserAPI_PostTestSectionsDTO postSectionDTOs)
        {
            var(errorCode, response) = await _testService.UserAPI_EditSections(testIdDTO, postSectionDTOs);

            return(this.ResultResponse(errorCode, response));
        }
        public async Task <IActionResult> DeleteTest([FromRoute] CommonAPI_TestIdDTO testIdDTO)
        {
            var(errorCode, response) = await _testService.UserAPI_DeleteTest(testIdDTO);

            return(this.ResultResponse(errorCode, response));
        }
예제 #5
0
        public async Task<IActionResult> BeginTest([FromRoute] CommonAPI_TestIdDTO testIdDTO)
        {
            var (errorCode, response) = await _testService.MemberAPI_BeginTest(testIdDTO);

            return this.ResultResponse(errorCode, response);
        }