public void UpdateLoanInformation(LoanInformation loanInformation)
 {
     using (var db = new EsDbContext())
     {
         db.Entry(loanInformation).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
 public void UpdateStudent(Student student)
 {
     using (var db = new EsDbContext())
     {
         db.Entry(student).State = EntityState.Modified;
         db.SaveChanges();
     }
 }
 public void UpdateComponentType(ComponentType componentType)
 {
     using (var db = new EsDbContext())
     {
         db.Entry(componentType).State = EntityState.Modified;
         db.SaveChanges();
     }
 }