public ActionResult Delete(string groupName, UserGroup group) { try { // TODO: Add delete logic here return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Create(UserGroup group) { try { string name = RealGroupName(group.Name); Roles.CreateRole(name); return RedirectToAction("Index"); } catch { return View(); } }
public ActionResult Edit(string groupName, UserGroup group) { // Not implemented: http://stackoverflow.com/a/281935/3191847 return RedirectToAction("Index"); }