Esempio n. 1
0
        public Object GetGradeById(int gradeId)
        {
            Grade grade = _gradeRepository.Single(a => a.GradeId == gradeId);

            if (grade != null)
            {
                return(new
                {
                    Grade = new { data = grade, total = 1 }
                });
            }
            else
            {
                return(null);
            }
        }