public int AddEdit(ExamMarks entity) { entity.DateCreated = DateTime.Now; entity.DateModified = DateTime.Now; User objUser = null; if (eSchoolSession.IsInSession(SessionKeys.CurrentUser)) objUser = (User)eSchoolSession.GetDirectValue(SessionKeys.CurrentUser); if (objUser != null && !string.IsNullOrEmpty(objUser.UserID)) { entity.CreatedByID = objUser.UserID; entity.ModifiedByID = objUser.UserID; } string[] addParams = new string[] { ExamMarks_Constant.EXAM_MARK_ID, ExamMarks_Constant.EXAM_ID, ExamMarks_Constant.STUDENT_ID, ExamMarks_Constant.MARKS_OBTAIN, ExamMarks_Constant.SUBJECT_ID, ExamMarks_Constant.GRADE_OBTAIN, ExamMarks_Constant.CREATED_BY_ID, ExamMarks_Constant.MODIFIED_BY_ID }; return _IExamMarksRepository.ExecuteNonQuery(entity, addParams, ExamMarks_Constant.SPROC_EXAMMARKS_UPS); }
public object GetScalar(ExamMarks obj) { throw new NotImplementedException(); }
public IEnumerable<ExamMarks> GetAll(ExamMarks entity) { string[] addParams = new string[] { ExamMarks_Constant.EXAM_ID }; return _IExamMarksRepository.GetAll(entity, addParams, ExamMarks_Constant.SPROC_EXAMMARKS_GETALL); }
public ExamMarks Get(ExamMarks obj) { throw new NotImplementedException(); }
public IEnumerable<ExamMarks> FormatTwoDetails(ExamMarks obj) { string[] addParams = new string[] { ExamMarks_Constant.SUBJECT_ID, ExamMarks_Constant.AYID, ExamMarks_Constant.CLASSID, ExamMarks_Constant.SECTIONID }; return _IExamMarksRepository.GetAll(obj, addParams, ExamMarks_Constant.SPROC_FORMATTWODETAILS); }
public int Delete(ExamMarks entity) { throw new NotImplementedException(); }