Beispiel #1
0
        public async Task <IActionResult> TranslationChoice(int choice, int selectBox = 0)
        {
            if (choice == 0)
            {
                return(RedirectToAction("Create"));
            }
            if (selectBox == 0)
            {
                return(NotFound());
            }
            var id = await _newsItemRepository.CreateCopy(selectBox);

            return(RedirectToAction("TranslationEdit", new { id = id }));
        }