Ejemplo n.º 1
0
 public async Task <IActionResult> CreatePost([FromBody] Post post)
 {
     try
     {
         await topicObj.CreatePost(post);
     }
     catch (Exception e)
     {
         Console.WriteLine("---------post controller--------" + e.Message);
         Console.WriteLine("---------post controller--------" + e.StackTrace);
     }
     // await topicObj.AddPostToDBAsync;
     return(Ok());
 }