C# Class DeveloperMediaDemo.Controllers.NoteController

Inheritance: ApiController
Datei anzeigen Open project: JohannesHoppe/DeveloperMediaDemo

Public Methods

Method Description
Delete ( int id ) : void

CRUD: Delete one

Get ( string secho, int iDisplayStart, int iDisplayLength ) : DateTableResponse

CRUD: Read All

Get ( int id ) : Note

CRUD: Read One

GetAll ( ) : IEnumerable
NoteController ( ) : System.Collections.Generic
NoteController ( INoteRepository repository ) : System.Collections.Generic
Post ( ) : HttpResponseMessage

CRUD: Create New

Post ( ) : int
Put ( Note note ) : HttpResponseMessage

CRUD: Modify existing

Put ( Note note ) : void

Private Methods

Method Description
GetSearch ( int year ) : IEnumerable
GetSearch ( string titlePart ) : IEnumerable
GetSearch ( string titlePart ) : IHttpActionResult
GetSearch ( string titlePart ) : Note
GetSearchFor42 ( string what ) : int

Method Details

Delete() public method

CRUD: Delete one
public Delete ( int id ) : void
id int
return void

Get() public method

CRUD: Read All
public Get ( string secho, int iDisplayStart, int iDisplayLength ) : DateTableResponse
secho string
iDisplayStart int
iDisplayLength int
return DeveloperMediaDemo.Models.DateTableResponse

Get() public method

CRUD: Read One
public Get ( int id ) : Note
id int
return DeveloperMediaDemo.Models.Note

GetAll() public method

public GetAll ( ) : IEnumerable
return IEnumerable

NoteController() public method

public NoteController ( ) : System.Collections.Generic
return System.Collections.Generic

NoteController() public method

public NoteController ( INoteRepository repository ) : System.Collections.Generic
repository INoteRepository
return System.Collections.Generic

Post() public method

CRUD: Create New
public Post ( ) : HttpResponseMessage
return HttpResponseMessage

Post() public method

public Post ( ) : int
return int

Put() public method

CRUD: Modify existing
public Put ( Note note ) : HttpResponseMessage
note DeveloperMediaDemo.Models.Note
return HttpResponseMessage

Put() public method

public Put ( Note note ) : void
note DeveloperMediaDemo.Models.Note
return void