예제 #1
0
        public ActionResult <Snippet> GetSnippet(string hash)
        {
            if (_snippetService.GetSnippetByHash(hash) == null)
            {
                return(NotFound(hash));
            }

            return(_snippetService.GetSnippetByHash(hash));
        }