예제 #1
0
        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);
            }
        }
예제 #2
0
 public Loans RetrieveById(Loans loan)
 {
     return(crudLoan.Retrieve <Loans>(loan));
 }