Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [HttpPost]
- [ValidateAntiForgeryToken]
- public async Task<IActionResult> Volumes(IEnumerable<SurveyCategories> surveyCategories)
- {
- if (ModelState.IsValid)
- {
- try
- {
- _context.Update(surveyCategories);
- await _context.SaveChangesAsync();
- }
- catch (DbUpdateConcurrencyException)
- {
- throw;
- }
- return RedirectToAction(nameof(Index));
- }
- return View(surveyCategories);
- }
Add Comment
Please, Sign In to add comment