public void Delete(JobCatalog add) { JobsEntities db = new JobsEntities(); db.JobCatalogs.Attach(add); db.Entry(add).State = System.Data.Entity.EntityState.Deleted; db.SaveChanges(); }
public void Edit(InfoUser add) { JobsEntities db = new JobsEntities(); db.InfoUsers.Attach(add); db.Entry(add).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); }
public void Edit(CompanyInfo add) { JobsEntities db = new JobsEntities(); db.CompanyInfoes.Attach(add); db.Entry(add).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); }
public void Delete(Position add) { JobsEntities db = new JobsEntities(); db.Positions.Attach(add); db.Entry(add).State = System.Data.Entity.EntityState.Deleted; db.SaveChanges(); }