Beispiel #1
0
        public IActionResult Delete(int id)
        {
            try
            {
                _service.DeleteUrl(id);

                return(PartialView("UrlList", ConvertDTO(_service.GetUrls())));
            }
            catch (ValidationException exc)
            {
                return(View("Error", exc.Message));
            }
        }