Beispiel #1
0
        public IActionResult Edit(int id, string url, string content)
        {
            try
            {
                _service.EditUrl(new UrlDTO {
                    Id = id, Url = url, Content = content
                });

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