コード例 #1
0
        public ResponseVerifyClientExists VerifyClientExists(RequestClientExists requestClientExists)
        {
            ResponseVerifyClientExists objVerifyClientExists = new ResponseVerifyClientExists();

            string identification, name, last;

            identification = requestClientExists.Identifier;
            name           = requestClientExists.First_Name;
            last           = requestClientExists.Last_Name;


            try
            {
                clientTable clientTable = new clientTable();
                clientTable.IDENTIFIER = identification;
                clientTable.NAME       = name;
                clientTable.LAST       = last;

                bool exist = entities.clientTables.Contains(clientTable);

                if (exist == true)
                {
                    objVerifyClientExists.Success = true;
                    objVerifyClientExists.Message = "El cliente si existe!";
                }
            }
            catch
            {
                objVerifyClientExists.Success = false;
                objVerifyClientExists.Message = "El cliente no existe :( ";
            }

            return(objVerifyClientExists);
        }
コード例 #2
0
        public ResponseVerifyClientExists ClientExistsQuestion(string identifier, string name, string last)
        {
            RequestClientExists        ca = new RequestClientExists(identifier, name, last);
            ResponseVerifyClientExists ce = ResponseVerifyClientExists.ResponseToClientExists(ca);

            return(ce);
        }
コード例 #3
0
        public ResponseVerifyClientExists VerifyClient(string identifier, string name, string last_name)
        {
            RequestClientExists        requestClientExists = new RequestClientExists(identifier, name, last_name);
            ResponseVerifyClientExists response            = ResponseVerifyClientExists.ResponseToClientExists(requestClientExists);



            return(response);
        }