Exemplo n.º 1
0
        public static int  DeleteOperatorByid(string operatorId)
        {
            Operator oper = Provider.GetOperatorByOperatorId(operatorId);

            if (!oper.IsAdmin)
            {
                int i = 0;
                i = Provider.DeleteOperatorByid(operatorId);
                ReloadOperators();
                if (i != 0)
                {
                    return(1);
                }
                else
                {
                    return(0);
                }
            }
            else
            {
                return(2);
            }
        }