Esempio n. 1
0
        public static domain.User getUser(Request request)
        {
            domain.Stage stage = new domain.Stage();
            stage.Id = Convert.ToInt32(request.User.IdStage);

            domain.User user = new domain.User(request.User.FirstName, request.User.LastName, request.User.Username,
                                               request.User.Password, stage);

            return(user);
        }
Esempio n. 2
0
        public static domain.Result getResult(Request request)
        {
            domain.Participant participant = new domain.Participant();
            participant.Id = Convert.ToInt32(request.Result.ParticipantId);

            domain.Stage stage = new domain.Stage();
            stage.Id = Convert.ToInt32(request.Result.StageId);

            domain.Result result = new domain.Result(participant, stage, request.Result.Score);

            return(result);
        }
 public Result(Participant participant, Stage stage, double score)
 {
     Participant = participant;
     Stage       = stage;
     Score       = score;
 }