C# Class TweetSave.Controllers.TweetController

Inheritance: ApiController
显示文件 Open project: hattan/TweetSave

Public Methods

Method Description
DeleteTweet ( int id ) : HttpResponseMessage
GetTweet ( string id ) : Tweet
GetTweets ( ) : IEnumerable
PostTweet ( Tweet tweet ) : HttpResponseMessage
PutTweet ( int id, Tweet tweet ) : HttpResponseMessage

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

DeleteTweet() public method

public DeleteTweet ( int id ) : HttpResponseMessage
id int
return System.Net.Http.HttpResponseMessage

Dispose() protected method

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

GetTweet() public method

public GetTweet ( string id ) : Tweet
id string
return TweetSave.Models.Tweet

GetTweets() public method

public GetTweets ( ) : IEnumerable
return IEnumerable

PostTweet() public method

public PostTweet ( Tweet tweet ) : HttpResponseMessage
tweet TweetSave.Models.Tweet
return System.Net.Http.HttpResponseMessage

PutTweet() public method

public PutTweet ( int id, Tweet tweet ) : HttpResponseMessage
id int
tweet TweetSave.Models.Tweet
return System.Net.Http.HttpResponseMessage