Пример #1
0
        public ActionResult Delete(int id, IFormCollection collection)
        {
            try
            {
                firmData.Delete(id);
                firmData.Commit();

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