public GetHashTagsResponse GetHashTagsForBlog(int blogPostId) { var response = new GetHashTagsResponse(); response.HashTags = repo.GetHashTagsForBlog(blogPostId); if (response.HashTags == null) { response.Success = false; response.Message = "No hashtags found for that blog post."; } else { response.Success = true; } return(response); }
public GetHashTagsResponse GetAllHashTags() { var response = new GetHashTagsResponse(); response.HashTags = repo.GetAllHashtags(); if (!response.HashTags.Any()) { response.Success = false; response.Message = "There are no hashtags."; } else { response.Success = true; } response.Success = true; return(response); }