public IActionResult Delete(Guid id) { try { var translation = _pageContentRepository.GetTranslation(id); if (translation != null) { translation.IsActive = false; _pageContentRepository.UpdateTranslation(translation); return(Ok()); } return(BadRequest()); } catch (Exception ex) { _logger.LogError(string.Format("Error occured while deleting page content translation"), ex); return(new StatusCodeResult(StatusCodes.Status500InternalServerError)); } }