C# Class WorldSurveyKit.Controllers.FilesController

Inheritance: ApiController
显示文件 Open project: ntheile/World-Survey-Kit

Public Methods

Method Description
DeleteFile ( int id ) : HttpResponseMessage

DELETE's a file by id

GetFile ( int id ) : HttpResponseMessage

Gets all the files that belong to an organization

PostFile ( File file ) : HttpResponseMessage

CREATE's a new file for the org passed in

PutFile ( int id, File file ) : HttpResponseMessage

Update a file, for example update the published date by passing in the updated_at field, note this is not a patch and all valus must be passed in.

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Private Methods

Method Description
GetOrgId ( int fileId ) : int

Method Details

DeleteFile() public method

DELETE's a file by id
public DeleteFile ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

Dispose() protected method

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

GetFile() public method

Gets all the files that belong to an organization
public GetFile ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

PostFile() public method

CREATE's a new file for the org passed in
public PostFile ( File file ) : HttpResponseMessage
file WorldSurveyKit.Models.File
return System.Net.Http.HttpResponseMessage

PutFile() public method

Update a file, for example update the published date by passing in the updated_at field, note this is not a patch and all valus must be passed in.
public PutFile ( int id, File file ) : HttpResponseMessage
id int
file WorldSurveyKit.Models.File
return System.Net.Http.HttpResponseMessage