private CustomerMaintainInfo convertToCustomerMaintainInfoFromObj(CustomerInfo temp) { CustomerMaintainInfo customer = new CustomerMaintainInfo(); customer.Code = temp.Code; customer.Customer = temp.customer; customer.Description = temp.Description; return customer; }
public IList<CustomerMaintainInfo> GetMyCustomerList() { IList<CustomerMaintainInfo> customerList = new List<CustomerMaintainInfo>(); try { IList<CustomerInfo> tmpCustomerList = miscRepository.GetCustomerList(); foreach (CustomerInfo temp in tmpCustomerList) { CustomerMaintainInfo customer = new CustomerMaintainInfo(); customer = convertToCustomerMaintainInfoFromObj(temp); customerList.Add(customer); } } catch (FisException e) { logger.Error(e.mErrmsg); throw e; } catch (Exception e) { logger.Error(e.Message); throw; } return customerList; }