Exemple #1
0
        /// <summary>
        /// Delete all access level in access group
        /// </summary>
        /// <param name="groupid">ID of access group include access level need delete</param>
        /// <param name="creator">user login id</param>
        /// <returns>OK or error from DB</returns>
        public static string DeleteAllAccesslv(string groupid, string creator)
        {
            string    Result = "OK";
            DataTable dt     = null;

            try
            {
                ServiceReference1.WSACUSoapClient client = new ServiceReference1.WSACUSoapClient();
                DataSet ds = client.GroupAccessLSave("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 access level: {0}", ex.ToString()));
            }
        }