public void Remove(Applicant applicant) { using (var db = new ApplicantContext()) { db.Remove <Applicant>(applicant); db.SaveChanges(); } }
public void Update(Applicant applicant) { using (var db = new ApplicantContext()) { db.Update <Applicant>(applicant); db.SaveChanges(); } }
public void Add(Applicant applicant) { using (var db = new ApplicantContext()) { db.Applicants.Add(applicant); db.SaveChanges(); } }