コード例 #1
0
        public ActionResult Manage()
        {
            UserProfileBO profile = RegistrationBLL.GetUserProfile(myCoalUser.UserToken);

            SecurityVM model = new SecurityVM(profile);

            return View(model);
        }
コード例 #2
0
 public ActionResult SecurityPanel(string userToken)
 {
     UserProfileBO profile = RegistrationBLL.GetUserProfile(userToken);
     SecurityVM model = new SecurityVM(profile);
     return PartialView(model);
 }
コード例 #3
0
 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);
     }
 }