public bool CreateLoanBill(LoanBill bill, int providerCode) { CreditLoanProvider provider = dao.GetProvider(providerCode); if (provider == null) { return(false); } bill.ProviderCode = provider.ProviderCode; dao.Add(bill); return(true); }
public LoanBill[] GetAllBills(CreditLoanProvider provider) { return(dao.GetBills(provider.ProviderCode)); }
public void AddLoanProvider(CreditLoanProvider provider) { dao.Add(provider); }