/// <summary> /// Initializes a new instance of the <see cref="PaymentTypePerVisitLogic"/> class. /// </summary> /// <param name="paymentTypePerVisitDetailsRepository">The payment type per visit details repository.</param> public PaymentTypePerVisitLogic(IPaymentTypePerVisitRepository paymentTypePerVisitDetailsRepository) { if (paymentTypePerVisitDetailsRepository != null) { _paymentTypePerVisitDetailsRepository = paymentTypePerVisitDetailsRepository; } }
/// <summary> /// Initializes a new instance of the <see cref="PaymentTypePerVisitLogic"/> class. /// </summary> /// <param name="connectionString">The connection string.</param> public PaymentTypePerVisitLogic(string connectionString) { _paymentTypePerVisitDetailsRepository = Factory.CreateInstance <IPaymentTypePerVisitRepository>(connectionString, true); }