C# Class WorldSurveyKit.Controllers.OrgsController

Inheritance: ApiController
Afficher le fichier Open project: ntheile/World-Survey-Kit

Méthodes publiques

Méthode Description
DeleteOrgs ( int id ) : HttpResponseMessage

DELETEs an entire organization, only a sys admin can do this

GetOrgs ( ) : IEnumerable

GETs the orgs where you are admin, if your a sys admin then it gets all the orgs

GetOrgs ( int id ) : Orgs

GETs data about an org by id

PostOrgs ( Orgs orgs ) : HttpResponseMessage

CREATEs a new org, the person who adds it is automatically the admin, only sys admins can add an org

PutOrgs ( int id, Orgs orgs ) : HttpResponseMessage

UPDATE's the orgName if your an admin, currently not in use and returns null

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void

Method Details

DeleteOrgs() public méthode

DELETEs an entire organization, only a sys admin can do this
public DeleteOrgs ( int id ) : HttpResponseMessage
id int
Résultat System.Net.Http.HttpResponseMessage

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetOrgs() public méthode

GETs the orgs where you are admin, if your a sys admin then it gets all the orgs
public GetOrgs ( ) : IEnumerable
Résultat IEnumerable

GetOrgs() public méthode

GETs data about an org by id
public GetOrgs ( int id ) : Orgs
id int
Résultat WorldSurveyKit.Models.Orgs

PostOrgs() public méthode

CREATEs a new org, the person who adds it is automatically the admin, only sys admins can add an org
public PostOrgs ( Orgs orgs ) : HttpResponseMessage
orgs WorldSurveyKit.Models.Orgs
Résultat System.Net.Http.HttpResponseMessage

PutOrgs() public méthode

UPDATE's the orgName if your an admin, currently not in use and returns null
public PutOrgs ( int id, Orgs orgs ) : HttpResponseMessage
id int
orgs WorldSurveyKit.Models.Orgs
Résultat System.Net.Http.HttpResponseMessage