public async Task <IActionResult> GetAllPosts() { var posts = await topicObj.GetAllPosts(); return(Ok(posts)); }