Exemplo n.º 1
0
 /// <summary>
 /// Deletes the feedback item.
 /// </summary>
 /// <param name="feedbackItemFromView">The feedback item from view.</param>
 public static void DeleteFeedbackItem(IRoadsService client, FeedbackItemSettings feedbackItemFromView)
 {
     var feedbackItemForDelete = new FeedbackItemData
     {
         FeedbackItemId = feedbackItemFromView.feedbackItemId,
         NameTranslationKey = feedbackItemFromView.settingName,
         SortNumber = feedbackItemFromView.sortNumber,
         DescriptionTranslationKey = feedbackItemFromView.description,
         IsNumeric = feedbackItemFromView.isNumeric,
         Mandatory = feedbackItemFromView.isMandatory,
         FeedbackModelId = feedbackItemFromView.feedbackModelId
     };
     client.DeleteFeedbackItem(feedbackItemForDelete);
 }