public IActionResult Post([FromBody] PageContent pageContent) { try { var result = _contentManager.AddOrUpdatePageContent(pageContent); if (result != null) { return(Ok(result)); } return(BadRequest()); } catch (Exception ex) { _logger.LogError(string.Format("Error occured while creating a page content"), ex); return(new StatusCodeResult(StatusCodes.Status500InternalServerError)); } }