Esempio n. 1
0
 /// <summary>
 /// Update a question
 /// </summary>
 /// <param name="question"></param>
 public void UpdateQuestion(Question question)
 {
     using (context)
     {
         context.Entry(question).State = System.Data.Entity.EntityState.Modified;
         context.SaveChanges();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Update a partie
 /// </summary>
 /// <param name="partie"></param>
 public void UpdatePartie(Partie partie)
 {
     using (context)
     {
         context.Entry(partie).State = System.Data.Entity.EntityState.Modified;
         context.SaveChanges();
     }
 }