public List <dynamic> Execute() { using (var cmd = new SaleSearchRepository()) { return(cmd.Execute()); } }
public List <Domain.Sale> Execute() { using (var cmd = new SaleSearchRepository()) { return(cmd.Execute()); } }
public ActionResult Index() { using (var cmd = new SaleSearchRepository()) { this.ViewBag.Sale = cmd.Execute(); } using (var cmd = new ProductSearchRepository()) { this.ViewBag.Product = cmd.Execute(); } using (var cmd = new CustomerSearchRepository()) { this.ViewBag.Customer = cmd.Execute(); } using (var cmd = new EmployeeSearchRepository()) { this.ViewBag.Employee = cmd.Execute(); } return(View()); }