/// <summary> /// 更新一个权限 /// </summary> /// <param name="data"></param> /// <returns></returns> public string UpdateRight2(Rights data) { try { UserDbContext uc = new UserDbContext("ConnStr1"); uc.ModifyRight(data); uc.SaveChanges(); //string script = MvcUT.ShowAlertAndHref(this, "增加成功", "AddRight"); return("ok;更新成功"); } catch (Exception ex) { //提示错误信息 string str = MisBase.BaseUT.GetRootException(ex).Message; return("false;" + str); } }