public IActionResult CreatePost([FromBody] Post post) { ConnectManager c = new ConnectManager(); if (c.CreatePost(post)) { return(Ok()); } else { return(BadRequest()); } }