Пример #1
0
        public IActionResult Delete(int id)
        {
            var todelete = _repository.Get(id);

            if (todelete != null)
            {
                _repository.Delete(todelete);
                return(Helper.CheckResult(todelete, true));
            }
            return(NotFound());
        }
Пример #2
0
        // GET: Investigation/Details/5
        public ActionResult Details(string uri)
        {
            var result = investigationRepository.Get(new Uri(uri));

            return(View(result));
        }