private async Task <IEnumerable <StudentAllocation> > GetStudentListAsync() { try { using (var scope = AppSession.TypeContainer.BeginLifetimeScope()) { var dbs = scope.Resolve <IDataBaseService>(); return(await dbs.FetchRecordSetAsync(StudentSQL.SelectStudent(UserSession.User.Settings.SchoolID.ToString(), UserSession.User.Settings.SchoolYear), StudentAllocationModel)); } } catch (Exception) { throw; } }