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); }
public DashboardData(string csName) { SchoolDB = new wisdomDBEntities(csName); _class = new ClassData(csName); SchoolSession = PropertiesConfiguration.ActiveSession; }