public async Task <IActionResult> Generate(CustomizerViewModel vm) { string tagFilterMode = ParseTagMode(vm.RadioTagModeOption, vm.RadioTagFilterOption); string tags = ""; if (vm.SelectedTags != null) { tags = string.Join(",", vm.SelectedTags); } return(Redirect($"/Single/Custom?nbr={vm.NumberOfPictures}&tags={tags}&tagFilterMode={tagFilterMode}&mediaFilterMode={vm.RadioMediaFilterModeOption}")); }
public async Task <IActionResult> Index() { ViewBag.Current = "Customizer"; var tags = await _tagService.GetAll(); var vm = new CustomizerViewModel { Tags = tags.Select(t => new Models.Tag { Name = t.TagName }).ToList() }; return(View(vm)); }