Пример #1
0
 public ActionResult DisappointRegistrar(ManagmentRoleRegistrarForm form)
 {
     Roles.RemoveUserFromRole(form.Login, "Registrator");
     return RedirectToAction("AppointRegistrar");
 }
Пример #2
0
 public ActionResult AppointRegistrar(ManagmentRoleRegistrarForm form)
 {
     Roles.AddUserToRole(form.Login, "Registrator");
     return RedirectToAction("AppointRegistrar");
 }