예제 #1
0
        public async Task <ActionResult <Link> > GetLink(string id)
        {
            var link = _linksService.Find(id);

            if (link == null)
            {
                return(NotFound());
            }

            return(link);
        }
예제 #2
0
        // 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));
        }