Ejemplo n.º 1
0
        public Feedback SaveFeedbackCommentAndHandledState(FeedbackCommentSaveDto dto)
        {
            var feedback = this._sfsDbContext.Feedbacks.Find(dto.FeedbackId);

            if (feedback != null)
            {
                feedback.Comment           = dto.Comment;
                feedback.FeedbackProcessed = dto.Handled;
                return(this.UpdateFeedback(feedback));
            }
            else
            {
                return(null);
            }
        }
Ejemplo n.º 2
0
 public IActionResult SaveComment([FromBody] FeedbackCommentSaveDto dto)
 {
     return(Ok(this._feedbackService.SaveFeedbackCommentAndHandledState(dto)));
 }