private void ButtonEditQuestion_Click(object sender, RoutedEventArgs e) { var answer = _textUtility.ConvertRichTextBoxToString(rtbAnswerBox); var editQuestion = new QuestionObject { Title = tbQuestionTitle.Text, Question = tblQuestionDetails.Text, Answer = answer }; _jsonController.EditQuestion(editQuestion); }