public JobApplication FindById(string id)
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.JobApplications.Find(int.Parse(id)));
     }
 }
 public IList <Reviewer> List()
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.Reviewers.ToList());
     }
 }
 public IList <JobApplication> List()
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.JobApplications.ToList());
     }
 }
 public Reviewer FindById(string id)
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.Reviewers.Find(int.Parse(id)));
     }
 }
Пример #5
0
 public Configuration FindById(string id)
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.Configurations.Find(int.Parse(id)));
     }
 }
Пример #6
0
 public IList <Configuration> List()
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.Configurations.ToList());
     }
 }
 public JobPositionType FindById(string id)
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.JobPositionTypes.Find(int.Parse(id)));
     }
 }
 public IList <JobPositionType> List()
 {
     using (var db = new ScopicAARPEntities())
     {
         return(db.JobPositionTypes.ToList());
     }
 }
 public void Update(JobApplication entity)
 {
     using (var db = new ScopicAARPEntities())
     {
         db.Entry(entity).State = System.Data.Entity.EntityState.Modified;
         db.SaveChanges();
     }
 }
 public void Add(JobApplication entity)
 {
     using (var db = new ScopicAARPEntities())
     {
         db.JobApplications.Add(entity);
         db.SaveChanges();
     }
 }
 public void Add(Reviewer entity)
 {
     using (var db = new ScopicAARPEntities())
     {
         db.Reviewers.Add(entity);
         db.SaveChanges();
     }
 }
Пример #12
0
 public void Add(Configuration entity)
 {
     using (var db = new ScopicAARPEntities())
     {
         db.Configurations.Add(entity);
         db.SaveChanges();
     }
 }
 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();
     }
 }
Пример #15
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();
     }
 }