예제 #1
0
        public IApplication Update(IApplication item, string appId, ICustomer customer,
                                   string customerId, string customerName, string customerSex, string customerPhone, string customerAddress,
                                   string region, DateTime?dateApplied, DateTime?dateTraved, string offNoteNo, DateTime?offNoteDate, string remark)
        {
            if (!CustomerBLL.IsExisting(customerId))
            {
                customer = CustomerBLL.Create(customerId, customerName, customerSex, customerPhone, customerAddress);
            }
            customer = CustomerBLL.Update(customer, customerId, customerName, customerSex, customerPhone,
                                          customerAddress);

            return(ApplicationBLL.Update(item, appId, customer.ID, region, dateApplied, dateTraved, offNoteNo,
                                         offNoteDate, remark));
        }