Beispiel #1
0
        public IActionResult Add()
        {
            try
            {
                int articleId = dbHelper.AddArticle().Id;
                return(RedirectToAction("GetArticle", new { id = articleId }));
            }
            catch (Exception)
            {
                TempData["ErrorMessage"] = _localizer["The article could not be created."];

                return(RedirectToAction("Index"));
            }
        }