public async Task <Snippet> GetSnippetById(int id)
 {
     return(await _snippetRepository.GetByIdAsync(id));
 }