public ActionResult Search(string masterControllerAction = null, string masterEntity = null, string masterKey = null) { ProductCollectionModel productCollectionModel = new ProductCollectionModel(ActivityOperations, "Search", masterControllerAction, masterEntity, masterKey); try { if (IsOperation(productCollectionModel.OperationResult)) { return(ZPartialView(productCollectionModel)); } } catch (Exception exception) { productCollectionModel.OperationResult.ParseException(exception); } return(JsonResultOperationResult(productCollectionModel.OperationResult)); }
public ActionResult Index(string masterEntity = null, string masterKey = null) { ProductCollectionModel productCollectionModel = new ProductCollectionModel(ActivityOperations, "Index", null, masterEntity, masterKey); try { if (IsIndex(productCollectionModel.OperationResult)) { return(ZView(productCollectionModel)); } } catch (Exception exception) { productCollectionModel.OperationResult.ParseException(exception); } return(ZViewOperationResult(productCollectionModel.OperationResult)); }
public ActionResult Index(int?masterCategoryId = null, int?masterSupplierId = null) { ClearUrlDictionary(); ProductCollectionModel productCollectionModel = new ProductCollectionModel() { IsSecurityOperations = this.IsSecurityOperations, ControllerAction = "Index", MasterCategoryId = masterCategoryId, MasterSupplierId = masterSupplierId }; try { IsSearch(productCollectionModel.OperationResult); } catch (Exception exception) { productCollectionModel.OperationResult.ParseException(exception); } return(View(productCollectionModel)); }
public ActionResult Search(string masterUrl = null, string masterControllerAction = null, int?masterCategoryId = null, int?masterSupplierId = null) { WriteUrlDictionary(masterUrl); ProductCollectionModel productCollectionModel = new ProductCollectionModel() { IsSecurityOperations = this.IsSecurityOperations, ControllerAction = "Search", MasterControllerAction = masterControllerAction, MasterCategoryId = masterCategoryId, MasterSupplierId = masterSupplierId }; try { IsSearch(productCollectionModel.OperationResult); } catch (Exception exception) { productCollectionModel.OperationResult.ParseException(exception); } return(PartialView(productCollectionModel)); }