public IActionResult DeletePostData(string blogName, string postName) { try { _blogDataService.DeletePost(blogName, postName); return(NoContent()); } catch (Exception e) { Log.Warning($"Request ended with error: {e.Message}"); return(BadRequest(e.Message)); } }