public questStatus List(TablesetId tablesetId, out FilterTableTreeviewViewModel filterTableTreeviewViewModel) { // Initialize filterTableTreeviewViewModel = new FilterTableTreeviewViewModel(this.UserSession, this._dataMgrBaseViewModel); filterTableTreeviewViewModel.TablesetId = tablesetId.Id; // TODO return(new questStatus(Severity.Success)); }
public ActionResult Tables(FilterEditorViewModel filterEditorViewModel) { // Initialize questStatus status = null; UserMessageModeler userMessageModeler = null; /*---------------------------------------------------------------------------------------------------------------------------------- * Log Operation *---------------------------------------------------------------------------------------------------------------------------------*/ status = LogOperation(); if (!questStatusDef.IsSuccess(status)) { userMessageModeler = new UserMessageModeler(status); return(Json(userMessageModeler, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Authorize *---------------------------------------------------------------------------------------------------------------------------------*/ status = Authorize(filterEditorViewModel._ctx); if (!questStatusDef.IsSuccess(status)) { userMessageModeler = new UserMessageModeler(status); return(Json(userMessageModeler, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Get tableset tables. *---------------------------------------------------------------------------------------------------------------------------------*/ TablesetId tablesetId = new TablesetId(filterEditorViewModel.TablesetId); FilterTableTreeviewViewModel filterTableTreeviewViewModel = null; TablesetModeler tablesetModeler = new TablesetModeler(this.Request, this.UserSession, filterEditorViewModel); status = tablesetModeler.List(tablesetId, out filterTableTreeviewViewModel); if (!questStatusDef.IsSuccess(status)) { userMessageModeler = new UserMessageModeler(status); return(Json(userMessageModeler, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Return data. *---------------------------------------------------------------------------------------------------------------------------------*/ status = new questStatus(Severity.Success); filterTableTreeviewViewModel.questStatus = status; return(Json(filterTableTreeviewViewModel, JsonRequestBehavior.AllowGet)); }