Table of Contents

Class LearnersController

Namespace
InSite.Api.Controllers
Assembly
InSite.UI.dll
[RoutePrefix("api/learners")]
public class LearnersController : ApiBaseController, IHttpController, IDisposable
Inheritance
LearnersController
Implements
Inherited Members

Constructors

LearnersController()

public LearnersController()

Methods

Count(LearnerCriteria)

[HttpPost]
[Route("count")]
[Route("{id}/count")]
public HttpResponseMessage Count(LearnerCriteria criteria)

Parameters

criteria LearnerCriteria

Returns

HttpResponseMessage

Remarks

Counts the learners who match your search criteria. You can search based on any of the following property values: Code, Email, FirstName, and/or LastName.

Get()

[HttpGet]
[Route("")]
public HttpResponseMessage Get()

Returns

HttpResponseMessage

Remarks

Returns a list of all people in your organization, including names, email addresses, and home addresses.

Get(string)

[HttpGet]
[Route("{id}")]
public HttpResponseMessage Get(string id)

Parameters

id string

Returns

HttpResponseMessage

Remarks

Returns a person using the person's unique globally unique identifier or individual account code. Account codes are alphanumeric values assigned by your organization.

Save(Learner)

[HttpPost]
[Route("save")]
[Route("{id}/save")]
public HttpResponseMessage Save(Learner learner)

Parameters

learner Learner

Returns

HttpResponseMessage

Remarks

Updates the person's name, email address, and home address. If the person is not in the database, then this method adds them as a new person.

Search(LearnerCriteria)

[HttpPost]
[Route("search")]
[Route("{id}/search")]
public HttpResponseMessage Search(LearnerCriteria criteria)

Parameters

criteria LearnerCriteria

Returns

HttpResponseMessage

Remarks

Searches for learners who match your search criteria. You can search based on any of the following property values: Code, Email, FirstName, and/or LastName.