Ejemplo n.º 1
0
 public List <dynamic> Execute()
 {
     using (var cmd = new SaleSearchRepository())
     {
         return(cmd.Execute());
     }
 }
Ejemplo n.º 2
0
 public List <Domain.Sale> Execute()
 {
     using (var cmd = new SaleSearchRepository())
     {
         return(cmd.Execute());
     }
 }
Ejemplo n.º 3
0
 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());
 }