public ActionResult Index(MergeServerFilesModel model)
        {
            string dataFileId, fileId1, fileId2;

            switch (model.ChosenCombination)
            {
            case 0:
                dataFileId = StorageMock.CopySampleToAppData(SampleDocs.CmsDataFile);
                fileId1    = StorageMock.CopySampleToAppData(SampleDocs.CmsDetached1);
                fileId2    = StorageMock.CopySampleToAppData(SampleDocs.CmsDetached2);
                return(RedirectToAction("Index", model.ReturnController, new { file1 = fileId1, file2 = fileId2, datafile = dataFileId }));

            case 1:
                dataFileId = StorageMock.CopySampleToAppData(SampleDocs.CmsDataFile);
                fileId1    = StorageMock.CopySampleToAppData(SampleDocs.CmsAttached1);
                fileId2    = StorageMock.CopySampleToAppData(SampleDocs.CmsDetached2);
                return(RedirectToAction("Index", model.ReturnController, new { file1 = fileId1, file2 = fileId2, datafile = dataFileId }));

            case 2:
            default:
                fileId1 = StorageMock.CopySampleToAppData(SampleDocs.CmsAttached1);
                fileId2 = StorageMock.CopySampleToAppData(SampleDocs.CmsAttached2);
                return(RedirectToAction("Index", model.ReturnController, new { file1 = fileId1, file2 = fileId2 }));
            }
        }
        public ActionResult Index(ServerFilesModel model)
        {
            // Copy file to the App_Data folder, where the upload files is stored.
            var fileId = StorageMock.CopySampleToAppData(model.ChosenFileId);

            if (model.IsCmsCoSign)
            {
                return(RedirectToAction("Index", model.ReturnController, new { cmsfile = fileId }));
            }

            return(RedirectToAction("Index", model.ReturnController, new { userfile = fileId }));
        }