public IActionResult Delete(int id) { var todelete = _repository.Get(id); if (todelete != null) { _repository.Delete(todelete); return(Helper.CheckResult(todelete, true)); } return(NotFound()); }
// GET: Investigation/Details/5 public ActionResult Details(string uri) { var result = investigationRepository.Get(new Uri(uri)); return(View(result)); }