Ejemplo n.º 1
0
        public async Task <IActionResult> Create(TopicModel topic)
        {
            if (ModelState.IsValid)
            {
                var newModel = await topicManager.AddTopicAsync(topic);

                return(RedirectToAction(nameof(Index)));
            }
            else
            {
                return(View());
            }
        }