public void Create(Loans loan) { try { var c = crudLoan.Retrieve <Loans>(loan); if (c != null) { throw new BusinessException(3); } crudLoan.Create(loan); } catch (Exception ex) { ExceptionManager.GetInstance().Process(ex); } }
public Loans RetrieveById(Loans loan) { return(crudLoan.Retrieve <Loans>(loan)); }