public async Task <IActionResult> AddPhotoComment(Guid photoId, [FromBody] string text) { logger.LogInformation($"{nameof(AddPhotoComment)}({nameof(photoId)} = {photoId}, {nameof(text)} = '{text}')"); try { await feedbackService.AddPhotoComment(photoId, GetCurrentUserId(), GetCurrentUserName(), text); return(Json("OK")); } catch (Exception ex) { logger.LogError(ex, $"Error in {nameof(AddPhotoComment)}({nameof(photoId)} = {photoId}, {nameof(text)} = '{text}'):\n{ex.ToString()}"); return(BadRequest()); } }