public async Task <IActionResult> deletePosts(string id) { if (string.IsNullOrEmpty(id)) { return(Problem(statusCode: 422, title: "Invalid data, Id property cannot be empty!")); } await _postsDomain.deletePost(id); return(NoContent()); }