public int AddPermission(int RoleID, int ModuleID, string FunctionIDs)
 {
     try
     {
         string sql = "";
         if (FunctionIDs != null && FunctionIDs != "")
         {
             string[] FuncIDs = FunctionIDs.Split(',');
             foreach (var item in FuncIDs)
             {
                 sql += "(" + RoleID + "," + item + "),";
             }
             sql = sql.Substring(0, sql.Length - 1);
         }
         int result = MyContext.CSF_Role_Function_Add(RoleID, ModuleID, sql);
         return(result);
     }
     catch (Exception ex)
     {
         Logs.WriteLog(ex);
         throw;
     }
 }