C# Class WorldSurveyKit.Controllers.OrgsController

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

Public Methods

Method 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

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

DeleteOrgs() public method

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

Dispose() protected method

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

GetOrgs() public method

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

GetOrgs() public method

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

PostOrgs() public method

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
return System.Net.Http.HttpResponseMessage

PutOrgs() public method

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
return System.Net.Http.HttpResponseMessage