C# Class WorldSurveyKit.Controllers.OrgUserMappingController

Inheritance: ApiController
Mostrar archivo Open project: ntheile/World-Survey-Kit

Public Methods

Method Description
DeleteOrgUserMappings ( int id ) : HttpResponseMessage

DELETE's a user from an org by passing in the id primary key from the OrgUserMapping Table

GetOrgUserMappings ( int id ) : HttpResponseMessage

GET's all the users from the orgID that is passed in

PostOrgUserMappings ( OrgUserMappings orgusermappings ) : HttpResponseMessage

CREATE's a new user for an org

PutOrgUserMappings ( int id, Delta orgusermappings ) : HttpResponseMessage

UPDATES a user by his OrgUserMapping Id that is passed in. You could use this api to make a user an admin. Can be used for partial updates

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

DeleteOrgUserMappings() public method

DELETE's a user from an org by passing in the id primary key from the OrgUserMapping Table
public DeleteOrgUserMappings ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

Dispose() protected method

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

GetOrgUserMappings() public method

GET's all the users from the orgID that is passed in
public GetOrgUserMappings ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

PostOrgUserMappings() public method

CREATE's a new user for an org
public PostOrgUserMappings ( OrgUserMappings orgusermappings ) : HttpResponseMessage
orgusermappings WorldSurveyKit.Models.OrgUserMappings
return System.Net.Http.HttpResponseMessage

PutOrgUserMappings() public method

UPDATES a user by his OrgUserMapping Id that is passed in. You could use this api to make a user an admin. Can be used for partial updates
public PutOrgUserMappings ( int id, Delta orgusermappings ) : HttpResponseMessage
id int
orgusermappings Delta
return System.Net.Http.HttpResponseMessage