public ScoreViewModel Get(int studentid, int lectionId)
        {
            var tuple = new ScoreTuple();

            tuple.ScoreEl   = this.scoreRepo.Get(lectionId, studentid);
            tuple.StudentEl = this.studentServ.Get(tuple.ScoreEl.StudentId);
            tuple.LectionEl = this.lectionServ.Get(tuple.ScoreEl.LectionId);
            return(this.mapper.Map <ScoreViewModel>(tuple));
        }
        public IEnumerable <ScoreViewModel> GetAllBySecondId(int secondId)
        {
            var tuples = new List <ScoreTuple>();
            var scores = this.scoreRepo.GetAllBySecondId(secondId);

            foreach (var s in scores)
            {
                var tuple = new ScoreTuple();
                tuple.ScoreEl   = s;
                tuple.StudentEl = this.studentServ.Get(tuple.ScoreEl.StudentId);
                tuple.LectionEl = this.lectionServ.Get(tuple.ScoreEl.LectionId);
                tuples.Add(tuple);
            }
            return(this.mapper.Map <IEnumerable <ScoreViewModel> >(tuples));
        }