public void RemoveApplication(int id)
        {
            HifApplication app = GetApplication(id);

            hifSet.Remove(app);
            context.SaveChanges();
        }
 public void UpdateImages(HifApplication app, Images newImage)
 {
     if (app.Images.Contains(newImage) == false)
     {
         app.Images.Add(newImage);
     }
     context.Images.Add(newImage);
     UpdateApplication(app);
 }
 public void UpdateApplication(HifApplication app)
 {
     context.Entry(app).State = EntityState.Modified;
     context.SaveChanges();
 }
 public void AddApplication(HifApplication app)
 {
     hifSet.Add(app);
     context.SaveChanges();
 }