private void SalesReportUiController_Load(object sender, EventArgs e) { startDateErrorLabel.Text = ""; endDateErrorLabel.Text = ""; SalesReportDataGridView.DataSource = _sharedManager.GetSalesReport(); }
public ActionResult SearchSaleReport(DateTime startDate, DateTime endDate) { var saleReports = _sharedManager.GetSalesReport(startDate, endDate).Where(x => x.SoldQty != 0).ToList(); return(PartialView("_SaleReportListing", saleReports)); }