How to either return JSON or RedirectToAction?
You need to change
RedirectToAction("Index", "Group");
to
return RedirectToAction("Index", "Group");
You need to change
RedirectToAction("Index", "Group");
to
return RedirectToAction("Index", "Group");