Ejemplo n.º 1
0
 public static int Insert(BranchExam branchExam)
 {
     try
     {
         int rowEffected = 0;
         rowEffected = BranchExamDataManager.InsertBranchExam(branchExam);
         return(rowEffected);
     }
     catch (Exception ex)
     {
         throw;
     }
 }
Ejemplo n.º 2
0
        public int InsertBranchExam(BranchExam branchExam)
        {
            IList <DbParameter> parameters = new List <DbParameter>()
            {
                new MySqlParameter("@branch_id", branchExam.Branch.Id),
                new MySqlParameter("@failing_sumbit_exam_scholarship_addition", branchExam.SumbitExamScholarshipAddition),
                new MySqlParameter("@failing_sumbit_exam_scholarship_reducing", branchExam.FailingSumbitExamScholarshipReducing),
                new MySqlParameter("@not_passed_exam_scholarship_addition", branchExam.PassedExamScholarshipAddition),
                new MySqlParameter("@not_passed_exam_scholarship_reducing", branchExam.NotPassedExamScholarshipReducing),
                new MySqlParameter("@pass_grade", branchExam.PassGrade),
                new MySqlParameter("@subject", branchExam.Subject),
            };

            return(_dbContext.Insert(Tables.BranchExams.InsertTable, true, parameters));
        }