using System; using System.Collections.Generic; using System.Linq; using System.Linq.Expressions; using System.Text; using Bowin.Common.Linq.Entity; using EMISOnline.ViewModel.SystemView; using EMISOnline.DataLogic.SystemDAL; using EMISOnline.Entities; using EMISOnline.DataLogic.Student; using EMISOnline.CommonLogic.StudentServices; namespace EMISOnline.CommonLogic.SchoolyearServices { public class SchoolyearServices : BaseServices, ISchoolyearServices { public SchoolyearDAL SchoolyearDAL { get; set; } public CF_Schoolyear GetStudentSchollyear(Guid UserID) { //Expression> exp = (x => x.UserID==UserID); //List list = SchoolyearDAL.GetSutdentSchoolyear(exp).OrderByDescending(x => x.FirstWeek) // .ThenByDescending(x => x.RecordStatus) // .ToList(); //if (list.Count > 0) return list[0]; return SchoolyearDAL.GetCurSchoolyear(); } } }