예제 #1
0
        public List <tbl_homework> GetHomeworks()
        {
            ClassData _class    = new ClassData(ConnectionName);
            var       Homeworks = unitOfWork.HomeworkRepository.Get(orderBy: q => q.OrderBy(s => s.id));

            Homeworks.ForEach(cc => cc.@class = _class.GetClassName(cc.@class));
            return(Homeworks);
        }
예제 #2
0
 public DashboardData(string csName)
 {
     SchoolDB      = new wisdomDBEntities(csName);
     _class        = new ClassData(csName);
     SchoolSession = PropertiesConfiguration.ActiveSession;
 }