C# Class NuSurvey.Web.Services.ScoreService

Inheritance: IScoreService
Show file Open project: ucdavis/NuSurvey

Public Methods

Method Description
CalculateScores ( IRepository repository, SurveyResponse surveyResponse ) : void
ScoreQuestion ( IQueryable questions, QuestionAnswerParameter questionAnswerParameter ) : QuestionAnswerParameter

Score question and check for validity If an answer is invalid, the Value QuestionAnswerParameter.Invalid will be true and the QuestionAnswerParameter.Message will have the error.

Method Details

CalculateScores() public method

public CalculateScores ( IRepository repository, SurveyResponse surveyResponse ) : void
repository IRepository
surveyResponse SurveyResponse
return void

ScoreQuestion() public method

Score question and check for validity If an answer is invalid, the Value QuestionAnswerParameter.Invalid will be true and the QuestionAnswerParameter.Message will have the error.
public ScoreQuestion ( IQueryable questions, QuestionAnswerParameter questionAnswerParameter ) : QuestionAnswerParameter
questions IQueryable
questionAnswerParameter NuSurvey.Web.Controllers.QuestionAnswerParameter
return NuSurvey.Web.Controllers.QuestionAnswerParameter