示例#1
0
        public static string RemoveSku(object objReq)
        {
            string result = "";
            iUserCreationClient userClient = new iUserCreationClient();

            try{
                CustomProfile profile = CustomProfile.GetProfile();
                Dictionary <string, object> dictionary = new Dictionary <string, object>();
                dictionary = (Dictionary <string, object>)objReq;
                long Delegateid = long.Parse(dictionary["Delegateid"].ToString());
                userClient.Deletedelegate(Delegateid, profile.DBConnection._constr);
                result = "success";
            }
            catch (System.Exception ex)
            {
                Login.Profile.ErrorHandling(ex, "Access Delegation", "RemoveSku");
            }
            finally
            {
                userClient.Close();
            }
            return(result);
        }