public int AddEdit(StudentsAttendance entity) { User objUser = null; if (eSchoolSession.IsInSession(SessionKeys.CurrentUser)) objUser = (User)eSchoolSession.GetDirectValue(SessionKeys.CurrentUser); if (objUser != null && !string.IsNullOrEmpty(objUser.SchoolID)) entity.SchoolID = objUser.SchoolID; string[] addParams = { StudentsAttendance_Constants.STUDENTSATTENDANCEID, Student_Constant.SCHOOL_ID, StudentsAttendance_Constants.CURRENTCLASSID, StudentsAttendance_Constants.CURRENTSECTIONID, StudentsAttendance_Constants.STUDENTID, StudentsAttendance_Constants.MONTH, StudentsAttendance_Constants.WEEK, StudentsAttendance_Constants.DATE, StudentsAttendance_Constants.ISABSENT, StudentsAttendance_Constants.ISPRESENT, BaseEntity_Constant.CREATED_BY_ID, BaseEntity_Constant.MODIFIED_BY_ID }; return _StudentsAttendanceRepository.ExecuteNonQuery(entity, addParams, StudentsAttendance_Constants.SPROC_ADDEDITSTUDENTSATTENDANCE); }
public IEnumerable<StudentsAttendance> GetAll(StudentsAttendance entity) { User objUser = null; if (eSchoolSession.IsInSession(SessionKeys.CurrentUser)) objUser = (User)eSchoolSession.GetDirectValue(SessionKeys.CurrentUser); if (objUser != null && !string.IsNullOrEmpty(objUser.SchoolID)) entity.SchoolID = objUser.SchoolID; string[] addParams = { Student_Constant.SCHOOL_ID, Student_Constant.CURRENT_ACADEMIC_YEAR_ID, StudentsAttendance_Constants.CURRENTCLASSID, StudentsAttendance_Constants.CURRENTSECTIONID, StudentsAttendance_Constants.MONTH, StudentsAttendance_Constants.WEEK }; return _StudentsAttendanceRepository.GetAll(entity, addParams, StudentsAttendance_Constants.SPROC_STUDENTSATTENDANCE_LSTALL); }
public object GetScalar(StudentsAttendance obj) { throw new NotImplementedException(); }
public StudentsAttendance Get(StudentsAttendance obj) { throw new NotImplementedException(); }
public int Delete(StudentsAttendance entity) { throw new NotImplementedException(); }