public void Add(JobPositionType entity)
 {
     using (var db = new ScopicAARPEntities())
     {
         db.JobPositionTypes.Add(entity);
         db.SaveChanges();
     }
 }
 public void Delete(string id)
 {
     using (var db = new ScopicAARPEntities())
     {
         var entity = db.JobApplications.Find(int.Parse(id));
         if (entity == null)
         {
             return;
         }
         db.JobApplications.Remove(entity);
         db.SaveChanges();
     }
 }
Exemple #3
0
 public void Delete(string id)
 {
     using (var db = new ScopicAARPEntities())
     {
         var item = FindById(id);
         if (item == null)
         {
             return;
         }
         db.Configurations.Remove(item);
         db.SaveChanges();
     }
 }