Пример #1
0
        public IHttpActionResult EnrollmentCount(int id)
        {
            //studentRepo.AddToClass();
            //var classes = studentRepo.Table.Where(x => x.StudentId == id).SelectMany(x => x.Classes).ToList();
            var count = classRepo.GetEnrollmentCount(id);

            if (count != null)
            {
                return(Ok(count));
            }
            return(NotFound());
        }