Antworten werden geshufflet; Fragen kommen ausgeglichen dran;
This commit is contained in:
@@ -42,7 +42,8 @@ namespace MultipleChoiceTrainer.Controllers
|
||||
[HttpPost]
|
||||
[ValidateAntiForgeryToken]
|
||||
public async Task<IActionResult> Create(QuestionViewModel question)
|
||||
{
|
||||
{
|
||||
question.CreationDate = DateTime.Now;
|
||||
if (ModelState.IsValid)
|
||||
{
|
||||
question.Choices = question.Choices.ToList().Where(e => !string.IsNullOrEmpty(e.Text) && !string.IsNullOrWhiteSpace(e.Text)).ToList();
|
||||
|
||||
Reference in New Issue
Block a user