public void UpdateCertificationsOfEmployee(CertificationsOfEmployee certificationsOfEmployee) { CertificationsOfEmployee c = context.CertificationsOfEmployees.Find(certificationsOfEmployee.Id); if (c != null) { context.Entry(c).State = EntityState.Modified; context.SaveChanges(); } }
public long InsertCertificationsOfEmployee(CertificationsOfEmployee certificationsOfEmployee) { context.CertificationsOfEmployees.Add(certificationsOfEmployee); context.SaveChanges(); return certificationsOfEmployee.Id; }