C# Class Blog.Services.Helpers.Rest.HobbyRestResource

Inheritance: IHobbyRestResource
Show file Open project: jsnmgpnty/Blogness2.0

Public Methods

Method Description
Add ( Hobby hobby, string authenticationToken ) : Hobby
Delete ( int hobbyId, string authenticationToken ) : bool
GetByUser ( int userId ) : List
Update ( Hobby hobby, string authenticationToken ) : Hobby

Method Details

Add() public method

public Add ( Hobby hobby, string authenticationToken ) : Hobby
hobby Blog.Common.Contracts.Hobby
authenticationToken string
return Blog.Common.Contracts.Hobby

Delete() public method

public Delete ( int hobbyId, string authenticationToken ) : bool
hobbyId int
authenticationToken string
return bool

GetByUser() public method

public GetByUser ( int userId ) : List
userId int
return List

Update() public method

public Update ( Hobby hobby, string authenticationToken ) : Hobby
hobby Blog.Common.Contracts.Hobby
authenticationToken string
return Blog.Common.Contracts.Hobby