Erste Version der Fragen-Eingabe
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user