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