Пример #1
0
        public ActionResult Create(Category category)
        {
            try
            {
                dbCategory.AddEntity(category);

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