示例#1
0
 public bool SaveCandidateExamBookingDetails(CandidateExamBookingDetail candidateExamBookingDetail)
 {
     try
     {
         db.CandidateExamBookingDetails.Add(candidateExamBookingDetail);
         db.SaveChanges();
         return(true);
     }
     catch (Exception ex) { return(false); }
 }
示例#2
0
 public bool UpdateCandidateExamBookingDetails(CandidateExamBookingDetail candidateExamBookingDetail)
 {
     try
     {
         db.Entry(candidateExamBookingDetail).State = EntityState.Modified;
         db.SaveChanges();
         return(true);
     }
     catch (Exception ex) { return(false); }
 }
示例#3
0
        public CandidateExamBookingDetail CandidateExamBookingDetailByCandidateId(int CandidateId)
        {
            CandidateExamBookingDetail candidateExamBookingDetail = db.CandidateExamBookingDetails.Where(a => a.CandidateId.Equals(CandidateId)).FirstOrDefault();

            return(candidateExamBookingDetail);
        }