C# Class PlayoffsCreator.Controllers.PlayerAPIController

Inheritance: ApiController
Exibir arquivo Open project: dzaba/EricpolSummerSchool.ASPNETMVC

Public Methods

Method Description
DeletePlayerModel ( int id ) : HttpResponseMessage
GetPlayerModel ( int id ) : PlayerModel
GetPlayerModel ( string name ) : PlayerModel
GetPlayerModels ( ) : IEnumerable
PostPlayerModel ( PlayerModel playermodel ) : HttpResponseMessage
PutPlayerModel ( int id, PlayerModel playermodel ) : HttpResponseMessage

Protected Methods

Method Description
Dispose ( bool disposing ) : void

Method Details

DeletePlayerModel() public method

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

Dispose() protected method

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

GetPlayerModel() public method

public GetPlayerModel ( int id ) : PlayerModel
id int
return PlayoffsCreator.Models.PlayerModel

GetPlayerModel() public method

public GetPlayerModel ( string name ) : PlayerModel
name string
return PlayoffsCreator.Models.PlayerModel

GetPlayerModels() public method

public GetPlayerModels ( ) : IEnumerable
return IEnumerable

PostPlayerModel() public method

public PostPlayerModel ( PlayerModel playermodel ) : HttpResponseMessage
playermodel PlayoffsCreator.Models.PlayerModel
return System.Net.Http.HttpResponseMessage

PutPlayerModel() public method

public PutPlayerModel ( int id, PlayerModel playermodel ) : HttpResponseMessage
id int
playermodel PlayoffsCreator.Models.PlayerModel
return System.Net.Http.HttpResponseMessage