C# Class AngularTutorial.Controllers.TodoController

Inheritance: ApiController
Datei anzeigen Open project: jph00/AngularTutorial

Public Methods

Method Description
DeleteTodo ( int id ) : HttpResponseMessage
GetTodo ( int id ) : Todo
GetTodos ( string q = null, string sort = null, bool desc = false, int limit = null, int offset ) : IEnumerable
PostTodo ( Todo todo ) : HttpResponseMessage
PutTodo ( int id, Todo todo ) : HttpResponseMessage

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

DeleteTodo() public method

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

Dispose() protected method

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

GetTodo() public method

public GetTodo ( int id ) : Todo
id int
return AngularTutorial.Models.Todo

GetTodos() public method

public GetTodos ( string q = null, string sort = null, bool desc = false, int limit = null, int offset ) : IEnumerable
q string
sort string
desc bool
limit int
offset int
return IEnumerable

PostTodo() public method

public PostTodo ( Todo todo ) : HttpResponseMessage
todo AngularTutorial.Models.Todo
return System.Net.Http.HttpResponseMessage

PutTodo() public method

public PutTodo ( int id, Todo todo ) : HttpResponseMessage
id int
todo AngularTutorial.Models.Todo
return System.Net.Http.HttpResponseMessage