public List <Subjects> GetSubjectListByParent(int StreamID, int CourseID, string SubjTypeName, string searchText, bool showDeleted) { try { return(SubjectIntegration.GetSubjectListByParent(StreamID, CourseID, SubjTypeName, searchText, showDeleted)); } catch (Exception ex) { throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex)); } }
public List <Subjects> GetSubjectListByFaculty(int FacultyID) { try { return(SubjectIntegration.GetSubjectListByFaculty(FacultyID)); } catch (Exception ex) { throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex)); } }
public List <Subjects> GetSubjectAll(string searchText) { try { return(SubjectIntegration.GetSubjectAll(searchText)); } catch (Exception ex) { throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex)); } }
public List <Subjects> GetSubjectAllByStream(int StreamID, int CourseID, string SubjTypeName, string searchText, bool showDeleted) { try { //return SubjectIntegration.GetSubjectAllByStream(StreamID, CourseID, SubjTypeName, searchText, showDeleted); string UniqueKey = string.Format("CountryList_{0}_{1}_{2}", CourseID, StreamID, SubjTypeName); if (HttpRuntime.Cache[UniqueKey] == null) { List <Subjects> subjectList = SubjectIntegration.GetSubjectAllByStream(StreamID, CourseID, SubjTypeName, searchText, showDeleted); HttpRuntime.Cache[UniqueKey] = subjectList; } return((List <Subjects>)(HttpRuntime.Cache[UniqueKey])); } catch (Exception ex) { throw (new Exception(MethodBase.GetCurrentMethod().DeclaringType.ToString() + "." + (new System.Diagnostics.StackFrame()).GetMethod().Name, ex)); } }
public int UpdateSubjects(Subjects theSubject) { return(SubjectIntegration.UpdateSubjects(theSubject)); }
public int InsertSubjects(Subjects theSubject) { return(SubjectIntegration.InsertSubjects(theSubject)); }