Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Add a users feedback

Description

The Add() method is used to add/log a users feedback. This is usually performed after they have submitted their service request and they are presented with a feedback form.

Package Details

Interface

IFeedbackManager

Syntax

feedbackManager.Add(feedback)

Returns

MTOA.DomainObjects.Feedback

API Endpoint

[POST] /api/v1/feedback

Request Body
{
"ServiceId": 0, // must be a valid service id
"Rating": 0, // number must be between 1 and 5
"Comment": "string",
"CreatedDate": "2020-10-19"
}

Returns

200 - Ok

Example

using MTOA.BLL.Interfaces;

var feedback = new Feedback
{
    Comment = "A comment",
    Rating = 4,
    ServiceId = 11
};

var returnVal = await _feedbackManager.Add(feedback);


  • No labels