public IActionResult List([FromBody] Post newPost) { service.AddNewPost(newPost); return(Json(new { newPost })); }