C# Class LetMeRate.Application.Services.RatingService

Inheritance: IRatingService
Mostra file Open project: cairey/Let-Me-Rate-NancyFX

Public Methods

Method Description
AddRating ( AddRatingCommand command ) : dynamic
DeleteRating ( DeleteRatingCommand command ) : dynamic
GetAllRatings ( GetAllRatingsQuery query ) : dynamic
GetAverageRatings ( IEnumerable ratings ) : int>.IDictionary
GetRatingsBetweenRating ( GetRatingsBetweenRatingQuery query ) : dynamic
GetRatingsByCustomParam ( GetRatingsCustomParamQuery query ) : dynamic
GetRatingsByUniqueKey ( GetRatingUniqueKeyQuery query ) : dynamic
RatingService ( IAccountService accountService, IAuthorisationService authorisationService ) : System

Private Methods

Method Description
GetUserAccount ( AuthorisationContext authorisationContext ) : dynamic
GetUserAccount ( string accountKey ) : dynamic
UpdateRating ( UpdateRatingCommand command ) : dynamic

Method Details

AddRating() public method

public AddRating ( AddRatingCommand command ) : dynamic
command LetMeRate.Application.Commands.AddRatingCommand
return dynamic

DeleteRating() public method

public DeleteRating ( DeleteRatingCommand command ) : dynamic
command LetMeRate.Application.Commands.DeleteRatingCommand
return dynamic

GetAllRatings() public method

public GetAllRatings ( GetAllRatingsQuery query ) : dynamic
query LetMeRate.Application.Query.GetAllRatingsQuery
return dynamic

GetAverageRatings() public method

public GetAverageRatings ( IEnumerable ratings ) : int>.IDictionary
ratings IEnumerable
return int>.IDictionary

GetRatingsBetweenRating() public method

public GetRatingsBetweenRating ( GetRatingsBetweenRatingQuery query ) : dynamic
query LetMeRate.Application.Query.GetRatingsBetweenRatingQuery
return dynamic

GetRatingsByCustomParam() public method

public GetRatingsByCustomParam ( GetRatingsCustomParamQuery query ) : dynamic
query LetMeRate.Application.Query.GetRatingsCustomParamQuery
return dynamic

GetRatingsByUniqueKey() public method

public GetRatingsByUniqueKey ( GetRatingUniqueKeyQuery query ) : dynamic
query LetMeRate.Application.Query.GetRatingUniqueKeyQuery
return dynamic

RatingService() public method

public RatingService ( IAccountService accountService, IAuthorisationService authorisationService ) : System
accountService IAccountService
authorisationService IAuthorisationService
return System