Ejemplo n.º 1
0
 public List <dynamic> Execute()
 {
     using (var cmd = new CategorySearchRepository())
     {
         return(cmd.Exeucte());
     }
 }
Ejemplo n.º 2
0
 public ActionResult ProductInput(ProductInputAction CommandAction)
 {
     this.ViewBag.Result = new List <dynamic>();
     if (CommandAction.ProductId != null)
     {
         this.ViewBag.Result   = CommandAction.Execute();
         this.ViewBag.EditFlag = "M";
     }
     using (var cmd = new CategorySearchRepository())
     {
         this.ViewBag.Product = cmd.Exeucte();
     }
     return(View());
 }