C# 클래스 WorldSurveyKit.Controllers.OrgsController

상속: ApiController
파일 보기 프로젝트 열기: ntheile/World-Survey-Kit

공개 메소드들

메소드 설명
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

보호된 메소드들

메소드 설명
Dispose ( bool disposing ) : void

메소드 상세

DeleteOrgs() 공개 메소드

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

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

GetOrgs() 공개 메소드

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

GetOrgs() 공개 메소드

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

PostOrgs() 공개 메소드

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

PutOrgs() 공개 메소드

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