예제 #1
0
 public async Task <ActionResult <PageDto> > AddOrUpdatePageFeedback(PageFeedbackDto pageFeedbackDto)
 {
     try
     {
         return(Ok(await _feedbackService.AddOrUpdatePageFeedbackAsync(pageFeedbackDto)));
     }
     catch (Exception ex)
     {
         return(BadRequest(new { message = $"Error occurred attempting to add or update page feedback: {ex.InnerException?.Message ?? ex.Message}" }));
     }
 }