public void AddNewSpecificComponent(SpecificComponent specComp)
 {
     dbContext.SpecificComponents.Add(specComp);
     dbContext.SaveChanges();
 }
 public void UpdateSpecificComponent(int specId, SpecificComponent specComp)
 {
     var itemToUpdate = dbContext.SpecificComponents.SingleOrDefault(x => x.SpecCompId == specId);
     if (itemToUpdate != null)
     {
         itemToUpdate = specComp;
         dbContext.SaveChanges();
     }
 }