예제 #1
0
        public ResponseVerifyAccountExists VerifyAccount(string identifier, string account_name)
        {
            RequestAccountExists        request  = new RequestAccountExists(identifier, account_name);
            ResponseVerifyAccountExists response = ResponseVerifyAccountExists.ResponseToAccountExists(request);

            return(response);
        }
예제 #2
0
        public ResponseVerifyAccountExists VerifyAccountExists(RequestAccountExists requestAccountExists)
        {
            ResponseVerifyAccountExists objVerifyAccountExists = new ResponseVerifyAccountExists();

            string identification, name;

            identification = requestAccountExists.Identifier;
            name           = requestAccountExists.Account_Name;

            try
            {
                accountTable accountTable = new accountTable();
                accountTable.IDENTIFIER   = identification;
                accountTable.ACCOUNT_NAME = name;
                bool exist = entities.accountTables.Contains(accountTable);
                if (exist == true)
                {
                    objVerifyAccountExists.Success = true;
                    objVerifyAccountExists.Message = "La cuenta si existe!";
                }
            }
            catch
            {
                objVerifyAccountExists.Success = false;
                objVerifyAccountExists.Message = "La cuenta no existe";
            }

            return(objVerifyAccountExists);
        }
예제 #3
0
        public ResponseVerifyAccountExists AccountExistsQuestion(string identifier, string name)
        {
            RequestAccountExists        acc = new RequestAccountExists(identifier, name);
            ResponseVerifyAccountExists ace = ResponseVerifyAccountExists.ResponseToAccountExists(acc);

            return(ace);
        }