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