public PurchaseTransactionService( IPurchaseTransactionRepository purchaseTransactionRepository ) { PurchaseTransactionRepository = purchaseTransactionRepository; ActiveUserService = new ActiveUserService(); }
public SellTransactionService( IPurchaseTransactionRepository purchaseTransactionRepository, ISellTransactionRepository sellTransactionRepository ) { PurchaseTransactionRepository = purchaseTransactionRepository; SellTransactionRepository = sellTransactionRepository; ActiveUserService = new ActiveUserService(); }
/// <summary> /// Initializes a new instance of the <see cref="TransactionController"/> class. /// </summary> public TransactionController() { this.purchaseRepository = new PurchaseTransactionRepository(); this.purchaseItemRepository = new PurchaseTransactionItemRepository(); }
public PurchaseTransactionService(IPurchaseTransactionRepository repository, IUnitOfWork unitOfWork) { this.repository = repository ?? throw new ArgumentNullException(nameof(repository)); this.unitOfWork = unitOfWork ?? throw new ArgumentNullException(nameof(unitOfWork)); }
public PurchaseTransactionsController(ILogger <PurchaseTransactionsController> logger, IPurchaseTransactionRepository repository, ITransValidationRepository transValRepository) { this.repository = repository; this.logger = logger; this.transValidationRepository = transValRepository; }
//public decimal PurchaseTaxTotal { get; set; } //public decimal PurchaseTxnTotal { get; set; } //public DateTime PurchaseDate { get; set; } //public string SupplierId { get; set; } //public string GSTIN { get; set; } //public string BillNumber { get; set; } //public List<Product> ItemList //{ // get; // set; //} //public List<Payment> PaymentList { get; set; } public PurchaseTransactionModel(IPurchaseTransactionRepository transactionRepository) { _transactionRepository = transactionRepository; }