public IActionResult Post([FromBody] PageContentTranslation contentTranslation) { try { var result = _pageContentRepository.CreateTranslation(contentTranslation); if (result != null) { return(Ok(result)); } return(BadRequest()); } catch (Exception ex) { _logger.LogError(string.Format("Error occured while creating/updating a page content translation"), ex); return(new StatusCodeResult(StatusCodes.Status500InternalServerError)); } }