Beispiel #1
0
        public async Task <IActionResult> Create(TodoType todoType, string returnUrl)
        {
            if (ModelState.IsValid)
            {
                todoType.AddModel(UserId);
                var result = await _todoService.CreateTodoTypeAsync(todoType);

                return(Redirect(returnUrl));
            }
            return(View(todoType));
        }