public async Task <ActionResult> Edit(string id, string dataSetId)
        {
            DataSetIndexViewModel dsviewIndex = new DataSetIndexViewModel();
            await dsviewIndex.GetDataSet(Session, id, dataSetId);

            await dsviewIndex.dataSetName(Session, dataSetId);

            if (dsviewIndex.errorOccurred == true)
            {
                return(RedirectToAction("Index", new { id = dataSetId }));
            }
            return(View(dsviewIndex));
        }
        public async Task <ActionResult> Add(string id)
        {
            DataSetIndexViewModel dsview = new DataSetIndexViewModel();

            await dsview.dataSetName(Session, id);

            dsview.dataSetIndexPostView = new DataSetIndexPostView();

            if (!string.IsNullOrEmpty(id))
            {
                dsview.dataSetIndexPostView.dataSetId = Convert.ToInt32(id);
            }

            return(View(dsview));
        }
Exemple #3
0
        public async Task <ActionResult> Add(string id, string Datasetid)
        {
            KeyWordsViewModel dsview = new KeyWordsViewModel();

            dsview.dataSetKeywordPost = new DataSetKeywordPost();

            DataSetIndexViewModel dsview1 = new DataSetIndexViewModel();

            await dsview1.dataSetName(Session, Datasetid);

            dsview.DataSetName = dsview1.DataSetName;

            ViewBag.DatasetId = Datasetid;
            if (!string.IsNullOrEmpty(id))
            {
                dsview.dataSetKeywordPost.dataSetIndexId = Convert.ToInt32(id);
            }
            return(View(dsview));
        }