Ejemplo n.º 1
0
 private void SaveRights()
 {
     string RoleID = string.Empty;
     try
     {
         RoleID = HttpContext.Current.Request["RoleID"].ToString();
     }
     catch { }
     if (string.IsNullOrEmpty(RoleID))
     {
         HttpContext.Current.Response.Write(JsonMessage.FailString("参数丢失!"));
         return;
     }
     string Rights = string.Empty;
     try
     {
         Rights = HttpContext.Current.Request["rights"].ToString();
     }
     catch { }
     RoleFactory bll = new RoleFactory();
     HttpContext.Current.Response.Write(bll.SaveRights(RoleID, Rights));
 }