コード例 #1
0
 public List <ProductGroup> Execute()
 {
     using (var cmd = new ProductGroupSearchRepository())
     {
         return(cmd.Execute());
     }
 }
コード例 #2
0
 public ActionResult ProductInput(ProductInputAction CommandAction)
 {
     this.ViewBag.Result = new List <Product>();
     if (CommandAction.ProductId != null)
     {
         this.ViewBag.Result   = CommandAction.Execute();
         this.ViewBag.EditFlag = "M";
     }
     using (var cmd = new ProductGroupSearchRepository())
     {
         this.ViewBag.Product = cmd.Execute();
     }
     return(View());
 }