C# Class NuSurvey.Web.Services.ScoreService

Inheritance: IScoreService
Afficher le fichier Open project: ucdavis/NuSurvey

Méthodes publiques

Méthode 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 méthode

public CalculateScores ( IRepository repository, SurveyResponse surveyResponse ) : void
repository IRepository
surveyResponse SurveyResponse
Résultat void

ScoreQuestion() public méthode

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
Résultat NuSurvey.Web.Controllers.QuestionAnswerParameter