Erste Version der Fragen-Eingabe

This commit is contained in:
2020-06-09 16:59:13 +02:00
parent 01585fc9ef
commit 6d84a4614b
9 changed files with 205 additions and 5 deletions

View File

@@ -29,6 +29,7 @@ namespace MultipleChoiceTrainer.Controllers
}
ViewData["CategoryId"] = new SelectList(_context.Categories, "Id", "Name", categoryId);
ViewData["ReturnId"] = categoryId;
return View();
}
@@ -46,6 +47,7 @@ namespace MultipleChoiceTrainer.Controllers
return RedirectToAction(nameof(Index), "Home", new { categoryId = section.CategoryId });
}
ViewData["CategoryId"] = new SelectList(_context.Categories, "Id", "Name", section.CategoryId);
ViewData["ReturnId"] = section.CategoryId;
return View(section);
}