private void SaveTest() { TestHandler xTestHandler = new TestHandler(); Test xTest = new Test(); if (chkBoxAutoCorrectTest.IsEnabled) { xTest.IsAutoCorrect = true; } else { xTest.IsAutoCorrect = false; } xTest.Name = txtBoxTestName.Text; xTestHandler.CreateTest(xTest, m_lxQuestions, m_lxAnswer, theTeacher.ID); Clear(true); }
public async Task Create(CommandContext ctx, string title, string desc) { await Executor.Execute(async() => await ctx.RespondAsync(embed: await _testHandler.CreateTest(title, desc)) ); }