public int InsertPurchaseDetails(string id, string packname, string packsize, string packdatefrom, string packdateto, string packtype, string packtotalcost) { PurchaseDAO dao = new PurchaseDAO(); int result = dao.InsertPurchaseDetails(id, packname, packsize, packdatefrom, packdateto, packtype, packtotalcost); return(result); }
public PurchaseBO(IOptions <ApiRequestSettings> apiRequestSettings, IOptions <PurchaseSettings> purchaseSettings, IOptions <DatabaseSettings> databaseSettings, IRequest request) : base() { Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("en-US"); this.apiRequestSettings = apiRequestSettings.Value; this.purchaseSettings = purchaseSettings.Value; this.request = request; this.purchaseDAO = new PurchaseDAO(ConnectionFactory.GetDbConnectionDefault(databaseSettings.Value.connectionString)); }
public PurchaseViewModel() { _purchaseDAO = new PurchaseDAO(); _purchase = new PurchaseModel(); ClearView(); UpdateList(); if (Purchase.Id == 0) { Purchase.Active = true; } }
public List <Purchase> SelectByUsername(string username) { PurchaseDAO dao = new PurchaseDAO(); return(dao.SelectByUsername(username)); }