public void CreateBill(ICustomerBill objCustomerBill) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); objDAL.CreateBill(objCustomerBill); //return objDAL.CreateBill(objBillDetails); }
public SalespersonController(ISalesPersonDAL salesPersonDAL) { this.salesPersonDAL = salesPersonDAL; }
// Constructor dependency injection (use IoC containers instead) public SalespersonController() { salesPersonDAL = new SalesPersonDAL(); }
//public List<IItem> GenerateReport(int CategoryId) //{ // ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); // return objDAL.GenerateReport(CategoryId); //} public List <IItemCategory> GetItemCategoryList() { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.GetItemCategoryList()); }
public List <IBillDetails> GetBillDetails(int billNumber) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.GetBillDetails(billNumber)); }
public void TakeBackSoldItems(IBillDetails objBillDetails) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); objDAL.TakeBackSoldItems(objBillDetails); }
public List <IItem> SearchItem(String itemName) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.SearchItem(itemName)); }
public bool CancelBill(ICustomerBill objCustomerBill) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.CancelBill(objCustomerBill)); }
public List <IItem> GetItemList(int CategoryId) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.GetItemList(CategoryId)); }
public List <ICustomerBill> SearchBillDetails(int billNumber) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.SearchBillDetails(billNumber)); }
public bool SaveReportofNotAvalableItems(List <IItem> itemslst) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.SaveReportofNotAvalableItems(itemslst)); }
public List <IItem> GetItemList(int categoryId, string name) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.GetItemList(categoryId, name)); }
public List <IItem> SearchItembyName(string name) { ISalesPersonDAL objDAL = SalesPersonDALFactory.CreateSalesPersonDALObject(); return(objDAL.SearchItemDetails(name)); }