コード例 #1
0
        public CustomerMailResponse ExecuteGetCustomerMail(CustomerMailRequest request)
        {
            var response = new CustomerMailResponse();

            Type type = request.GetType();

            if (type.FullName == "BOA.Types.Banking.CustomerMailRequest")
            {
                var pr = new BOA.Process.Banking.CustomerMail();

                if (request.MethodName == "GetCustomerMail")
                {
                    response = pr.GetCustomerMail((CustomerMailRequest)request);
                }
                else if (request.MethodName == "DelCustomerMail")
                {
                    response = pr.DelCustomerMail((CustomerMailRequest)request);
                }
                else if (request.MethodName == "UpdCustomerMail")
                {
                    response = pr.UpdCustomerMail((CustomerMailRequest)request);
                }
                else if (request.MethodName == "AddCustomerMail")
                {
                    response = pr.AddCustomerMail((CustomerMailRequest)request);
                }
            }
            return(response);
        }
コード例 #2
0
        public CustomerMailResponse DelCustomerMail(CustomerMailRequest request)
        {
            Business.Banking.CustomerMail customerBusiness = new Business.Banking.CustomerMail();
            List <CustomerMailContract>   customerMails    = customerBusiness.DelCustomerMail(request.customerMail);

            if (customerMails != null)
            {
                return(new CustomerMailResponse()
                {
                    IsSuccess = true
                });
            }
            return(new CustomerMailResponse()
            {
                IsSuccess = false
            });
        }