public async Task<IActionResult> Delete([FromRoute] int coverId) { var userOwnsPost = await _coverService.UserOwnsCover(coverId, HttpContext.GetUserId()); if (userOwnsPost) { var deleted = await _coverService.DeleteAsync(coverId); if (deleted) return NoContent(); } return NotFound(); }