コード例 #1
0
        /// <summary>
        /// 删除角色信息
        /// </summary>
        /// <returns></returns>
        public ActionResult DeleteRole(RoleSearchDTO dto)
        {
            ResultData <object> result = new ResultData <object>();

            try
            {
                result = UserAuthorityProvider.DeleteRole(dto);
            }
            catch (Exception ex)
            {
                result.SubmitResult = false;
                result.Message      = ex.Message;
            }
            return(Json(result, JsonRequestBehavior.AllowGet));
        }