public void EmailValidatorForm(string code, EmailValidateTemplate body)
        {
            EmailValidateParams Params = new EmailValidateParams();

            code = HttpUtility.UrlDecode(code);
            MaxSerial serial = SerialBO.Instance.GetSerial(code, SerialType.ValidateEmail);

            if (serial != null && UserBO.Instance.ResetEmailByValidateCode(code))
            {
                Params.Success = true;
                int    userID;
                string username;

                userID          = serial.OwnerUserId;
                username        = UserBO.Instance.GetUser(userID).Username;
                Params.Email    = serial.Data;
                Params.Username = username;
            }
            else
            {
                Params.Success = false;
            }
            body(Params);
        }
        public void EmailValidatorForm(string code, EmailValidateTemplate body)
        {
            EmailValidateParams Params = new EmailValidateParams();
            code = HttpUtility.UrlDecode(code);
            MaxSerial serial = SerialBO.Instance.GetSerial(code, SerialType.ValidateEmail);

            if (serial!=null && UserBO.Instance.ResetEmailByValidateCode( code))
            {
                Params.Success = true;
                int userID;
                string  username;

                userID = serial.OwnerUserId;
                username = UserBO.Instance.GetUser(userID).Username;
                Params.Email = serial.Data;
                Params.Username = username;
            }
            else
            {
                Params.Success = false;
            }
            body(Params);
        }