public ActionResult Search(string masterControllerAction = null) { RoleCollectionModel roleCollectionModel = new RoleCollectionModel(ActivityOperations, "Search", masterControllerAction); try { if (IsOperation(roleCollectionModel.OperationResult)) { return(ZPartialView(roleCollectionModel)); } } catch (Exception exception) { roleCollectionModel.OperationResult.ParseException(exception); } return(JsonResultOperationResult(roleCollectionModel.OperationResult)); }
public ActionResult Index() { RoleCollectionModel roleCollectionModel = new RoleCollectionModel(ActivityOperations, "Index", null); try { if (IsIndex(roleCollectionModel.OperationResult)) { return(ZView(roleCollectionModel)); } } catch (Exception exception) { roleCollectionModel.OperationResult.ParseException(exception); } return(ZViewOperationResult(roleCollectionModel.OperationResult)); }