Esempio n. 1
0
        // GET: /File/Create
        public ActionResult Create()
        {
            FileViewModel fileViewModel = new FileViewModel
            {
                FilePath = (string)Session["fileName"]
            };
            LoadTagTypes(fileViewModel);

            ViewBag.Action = "Create";
            return View("CreateOrEdit", fileViewModel);
        }
Esempio n. 2
0
 private void LoadTagTypes(FileViewModel fileViewModel)
 {
     List<BaseTag> tags = _tagRest.Get();
     fileViewModel.Tags = new MultiSelectList(tags, "Id", "Description");
 }