public ActionResult Last(Quest.MasterPricing.Database.Models.TablesListViewModel tablesListViewModel) { questStatus status = null; /*---------------------------------------------------------------------------------------------------------------------------------- * Log Operation *---------------------------------------------------------------------------------------------------------------------------------*/ status = LogOperation(); if (!questStatusDef.IsSuccess(status)) { status = new questStatus(Severity.Success); tablesListViewModel.questStatus = status; return(Json(tablesListViewModel, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Authorize *---------------------------------------------------------------------------------------------------------------------------------*/ status = Authorize(tablesListViewModel._ctx); if (!questStatusDef.IsSuccess(status)) { status = new questStatus(Severity.Success); tablesListViewModel.questStatus = status; return(Json(tablesListViewModel, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Get list of items. *---------------------------------------------------------------------------------------------------------------------------------*/ DatabaseId databaseId = new DatabaseId(tablesListViewModel.DatabaseId); Quest.MasterPricing.Database.Models.TablesListViewModel tablesetsListViewModelNEW = null; TablesListModeler tablesListModeler = new TablesListModeler(this.Request, this.UserSession); status = tablesListModeler.List(databaseId, out tablesetsListViewModelNEW); if (!questStatusDef.IsSuccess(status)) { status = new questStatus(Severity.Success); tablesListViewModel.questStatus = status; return(Json(tablesListViewModel, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Return view *---------------------------------------------------------------------------------------------------------------------------------*/ status = new questStatus(Severity.Success); tablesetsListViewModelNEW.DatabaseId = tablesListViewModel.DatabaseId; tablesetsListViewModelNEW.questStatus = status; return(Json(tablesetsListViewModelNEW, JsonRequestBehavior.AllowGet)); }
public ActionResult Next(TablesListViewModel requisitionListViewModel) { questStatus status = null; /*---------------------------------------------------------------------------------------------------------------------------------- * Log Operation *---------------------------------------------------------------------------------------------------------------------------------*/ status = LogOperation(); if (!questStatusDef.IsSuccess(status)) { status = new questStatus(Severity.Success); requisitionListViewModel.questStatus = status; return(Json(requisitionListViewModel, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Authorize *---------------------------------------------------------------------------------------------------------------------------------*/ status = Authorize(requisitionListViewModel._ctx); if (!questStatusDef.IsSuccess(status)) { status = new questStatus(Severity.Success); requisitionListViewModel.questStatus = status; return(Json(requisitionListViewModel, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Get list of items. *---------------------------------------------------------------------------------------------------------------------------------*/ // TODO. TablesListViewModel tablesetsListViewModelNEW = null; TablesListModeler tablesetsListModeler = new TablesListModeler(this.Request, this.UserSession); status = tablesetsListModeler.List(out tablesetsListViewModelNEW); if (!questStatusDef.IsSuccess(status)) { status = new questStatus(Severity.Success); requisitionListViewModel.questStatus = status; return(Json(requisitionListViewModel, JsonRequestBehavior.AllowGet)); } /*---------------------------------------------------------------------------------------------------------------------------------- * Return view *---------------------------------------------------------------------------------------------------------------------------------*/ status = new questStatus(Severity.Success); tablesetsListViewModelNEW.questStatus = status; return(Json(tablesetsListViewModelNEW, JsonRequestBehavior.AllowGet)); }