public int AddEdit(ExamMarksDetailIs 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[] { ExamMarksDetailIs_Constant.EXAM_MARK_DETAIL_ID, ExamMarksDetailIs_Constant.EXAM_ID, ExamMarksDetailIs_Constant.STUDENT_ID, ExamMarksDetailIs_Constant.SUBJECT_ID, ExamMarksDetailIs_Constant.QUESTION_NO, ExamMarksDetailIs_Constant.QUESTION_ANSWERED, ExamMarksDetailIs_Constant.CREATED_BY_ID, ExamMarksDetailIs_Constant.MODIFIED_BY_ID };

            return _IExamMarksDetailIsRepository.ExecuteNonQuery(entity, addParams, ExamMarksDetailIs_Constant.SPROC_EXAMMARKSDETAILIS_UPS);
        }
 public IEnumerable<ExamMarksDetailIs> GetStudentsForClass(ExamMarksDetailIs obj)
 {
     string[] addParams = new string[] { ExamMarksDetailIs_Constant.CLASSID};
     return _IExamMarksDetailIsRepository.GetAll(obj, addParams, ExamMarksDetailIs_Constant.SPROC_EXAMSTUDENTS_FORCLASS);
 }
 public object GetScalar(ExamMarksDetailIs obj)
 {
     throw new NotImplementedException();
 }
 public IEnumerable<ExamMarksDetailIs> GetAll(ExamMarksDetailIs entity)
 {
     string[] addParams = new string[] { ExamMarksDetailIs_Constant.EXAM_ID, ExamMarksDetailIs_Constant.SUBJECT_ID};
     return _IExamMarksDetailIsRepository.GetAll(entity, addParams, ExamMarksDetailIs_Constant.SPROC_EXAMMARKSDETAILS_GETALL);
 }
 public ExamMarksDetailIs Get(ExamMarksDetailIs obj)
 {
     throw new NotImplementedException();
 }
 public int Delete(ExamMarksDetailIs entity)
 {
     throw new NotImplementedException();
 }