public ActionResult Manage() { UserProfileBO profile = RegistrationBLL.GetUserProfile(myCoalUser.UserToken); SecurityVM model = new SecurityVM(profile); return View(model); }
public ActionResult SecurityPanel(string userToken) { UserProfileBO profile = RegistrationBLL.GetUserProfile(userToken); SecurityVM model = new SecurityVM(profile); return PartialView(model); }
public ActionResult Permissions(SecurityVM model) { try { RegistrationBLL.Save(model.Registration.Registration.RegistrationID, model.Registration.Registration.RegistrationStatusID, model.Roles); AjaxResult result = new AjaxResult(AjaxResult.AjaxStatus.OK, "The user's permissions were set"); return Json(result); } catch (Exception ex) { ModelState.AddModelError("", ex.Message); return PartialView(model); } }