/// <summary> /// Delete all user group in access group /// </summary> /// <param name="groupid">Id of access group need delete</param> /// <param name="creator">user login id</param> /// <returns>OK or error from DB</returns> public static string DeleteAllUserGroup(string groupid, string creator) { string Result = "OK"; DataTable dt = null; try { ServiceReference1.WSACUSoapClient client = new ServiceReference1.WSACUSoapClient(); DataSet ds = client.GroupAccessUGSave("D", groupid, "", creator, DateTime.Today); dt = ds.Tables[0]; Result = dt.Rows[0][0].ToString(); return(Result); } catch (Exception ex) { return(string.Format("Access group class - Delete all user group: {0}", ex.ToString())); } }