C# Class AssetManager.Controllers.ChargesController

Inheritance: RavenAPIController
Show file Open project: hoonzis/CPKnockoutRavenDB Class Usage Examples

Public Methods

Method Description
Delete ( int id, int assetID ) : object
GetResponse ( Charge charge, Asset asset, bool creation ) : Object
Post ( Charge value, int assetID ) : Object

Create a new charge and store in the DB POST api/charges

Put ( Charge value, int assetID ) : Object

Update existing charge in the database PUT api/charges/5

Method Details

Delete() public method

public Delete ( int id, int assetID ) : object
id int
assetID int
return object

GetResponse() public method

public GetResponse ( Charge charge, Asset asset, bool creation ) : Object
charge AssetManager.Model.Charge
asset AssetManager.Model.Asset
creation bool
return Object

Post() public method

Create a new charge and store in the DB POST api/charges
public Post ( Charge value, int assetID ) : Object
value AssetManager.Model.Charge
assetID int
return Object

Put() public method

Update existing charge in the database PUT api/charges/5
public Put ( Charge value, int assetID ) : Object
value AssetManager.Model.Charge
assetID int
return Object