C# Class BolfTracker.Services.ShotService

Inheritance: IShotService
Show file Open project: mkchandler/bolf-tracker-mvc

Public Methods

Method Description
Create ( int gameId, int playerId, int holeId, int attempts, bool shotMade ) : void
Delete ( int id ) : void
DeleteToShot ( int gameId, int shotId ) : void
GetShot ( int id ) : Shot
GetShots ( int gameId ) : IEnumerable
RecalculateShots ( int gameId ) : void
ShotService ( IShotRepository shotRepository, IShotTypeRepository shotTypeRepository, IGameRepository gameRepository, IPlayerRepository playerRepository, IHoleRepository holeRepository ) : System
Update ( int id, int points, ShotType shotType ) : void

Method Details

Create() public method

public Create ( int gameId, int playerId, int holeId, int attempts, bool shotMade ) : void
gameId int
playerId int
holeId int
attempts int
shotMade bool
return void

Delete() public method

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

DeleteToShot() public method

public DeleteToShot ( int gameId, int shotId ) : void
gameId int
shotId int
return void

GetShot() public method

public GetShot ( int id ) : Shot
id int
return Shot

GetShots() public method

public GetShots ( int gameId ) : IEnumerable
gameId int
return IEnumerable

RecalculateShots() public method

public RecalculateShots ( int gameId ) : void
gameId int
return void

ShotService() public method

public ShotService ( IShotRepository shotRepository, IShotTypeRepository shotTypeRepository, IGameRepository gameRepository, IPlayerRepository playerRepository, IHoleRepository holeRepository ) : System
shotRepository IShotRepository
shotTypeRepository IShotTypeRepository
gameRepository IGameRepository
playerRepository IPlayerRepository
holeRepository IHoleRepository
return System

Update() public method

public Update ( int id, int points, ShotType shotType ) : void
id int
points int
shotType ShotType
return void