public async Task <IActionResult> DeletePhotoComment([FromBody] PublicPhotoComment comment) { logger.LogInformation($"{nameof(DeletePhotoComment)}({nameof(comment.PhotoId)} = {comment.PhotoId})"); try { if (!GetCurrentUserId().Equals(comment.UserId)) { return(Forbid()); } await feedbackService.DeletePhotoComment(comment.FromPublic()); return(Json("OK")); } catch (Exception ex) { logger.LogError(ex, $"Error in {nameof(DeletePhotoComment)}({nameof(comment.PhotoId)} = {comment.PhotoId}):\n{ex.ToString()}"); return(BadRequest()); } }