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