public List <ProductGroup> Execute() { using (var cmd = new ProductGroupSearchRepository()) { return(cmd.Execute()); } }
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()); }