Пример #1
0
        public void Delete(JobCatalog add)
        {
            JobsEntities db = new JobsEntities();

            db.JobCatalogs.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Deleted;
            db.SaveChanges();
        }
Пример #2
0
        public void Edit(InfoUser add)
        {
            JobsEntities db = new JobsEntities();

            db.InfoUsers.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Пример #3
0
        public void Edit(CompanyInfo add)
        {
            JobsEntities db = new JobsEntities();

            db.CompanyInfoes.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Modified;
            db.SaveChanges();
        }
Пример #4
0
        public void Delete(Position add)
        {
            JobsEntities db = new JobsEntities();

            db.Positions.Attach(add);
            db.Entry(add).State = System.Data.Entity.EntityState.Deleted;
            db.SaveChanges();
        }