public IActionResult DeletePageContent(Guid id) { try { var result = _contentManager.DeletePageContent(id); if (result) { return(Ok()); } return(BadRequest()); } catch (Exception ex) { _logger.LogError(string.Format("Error occured while deleting page content"), ex); return(new StatusCodeResult(StatusCodes.Status500InternalServerError)); } }