public async Task <ActionResult <Link> > GetLink(string id) { var link = _linksService.Find(id); if (link == null) { return(NotFound()); } return(link); }
// GET: Links/Details/5 public IActionResult Details(string id) { if (id == null) { return(NotFound()); } var link = _linksService.Find(id); if (link == null) { return(NotFound()); } return(View(link)); }