Exemple #1
0
        public ActionResult Edit(int?id = null)
        {
            var vm = id.HasValue
                ? Mapper.Map <EditFormViewModel>(_formFieldService.Get(id.Value))
                : new EditFormViewModel();

            vm.Fields = ViewModelHelper.CreateFieldsListViewModel(_fieldService);
            return(View(vm));
        }
Exemple #2
0
        public ActionResult Index()
        {
            var vm = ViewModelHelper.CreateFieldsListViewModel(_fieldService);

            return(View(vm));
        }