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