Beispiel #1
0
        public ActionResult DeleteRole(string roleGuid)
        {
            UserDomainLogic userDomainLogic = new UserDomainLogic();
            Message         message         = new Message();

            if (userDomainLogic.DeleteRoleLogic(new Guid(roleGuid)))
            {
                ModelState.Clear();
                message.MessageText = "Role has been deleted successfully.";
                message.MessageType = MessageType.Success;
            }
            else
            {
                message.MessageText = "Role deletion failed.";
                message.MessageType = MessageType.Error;
            }
            return(Json(message, JsonRequestBehavior.AllowGet));
        }