C# Class WorldSurveyKit.Controllers.UsersController

Inheritance: ApiController
Datei anzeigen Open project: ntheile/World-Survey-Kit

Public Methods

Method Description
DeleteUsers ( int id ) : HttpResponseMessage

DELETE's a user entirely from the system

GetUsers ( ) : IEnumerable

GET's all of the users in the system

GetUsers ( int id ) : Users

GET's all the information about a user by ID

PostUsers ( Users users ) : HttpResponseMessage

CREATE's a new user

PutUsers ( int id, Users users ) : HttpResponseMessage

UPDATE's user information like the users Name, defaultOrg, and isSystemAdmin You must be a system administrator to use this

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

DeleteUsers() public method

DELETE's a user entirely from the system
public DeleteUsers ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

GetUsers() public method

GET's all of the users in the system
public GetUsers ( ) : IEnumerable
return IEnumerable

GetUsers() public method

GET's all the information about a user by ID
public GetUsers ( int id ) : Users
id int
return WorldSurveyKit.Models.Users

PostUsers() public method

CREATE's a new user
public PostUsers ( Users users ) : HttpResponseMessage
users WorldSurveyKit.Models.Users
return System.Net.Http.HttpResponseMessage

PutUsers() public method

UPDATE's user information like the users Name, defaultOrg, and isSystemAdmin You must be a system administrator to use this
public PutUsers ( int id, Users users ) : HttpResponseMessage
id int
users WorldSurveyKit.Models.Users
return System.Net.Http.HttpResponseMessage