/// <summary>
 /// Create a new Theme_ object.
 /// </summary>
 /// <param name="id">Initial value of the id property.</param>
 /// <param name="texte">Initial value of the texte property.</param>
 public static Theme_ CreateTheme_(global::System.Int32 id, global::System.String texte)
 {
     Theme_ theme_ = new Theme_();
     theme_.id = id;
     theme_.texte = texte;
     return theme_;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the Theme EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTheme(Theme_ theme_)
 {
     base.AddObject("Theme", theme_);
 }
 public ActionResult Delete(Theme_ themeToDel)
 {
     if (!ModelState.IsValid)
     {
         System.Diagnostics.Debug.WriteLine("bad1");
         return View();
     }
     try
     {
         access da = new access();
         da.delete_tables_ref_theme3(themeToDel.id);
         
         return RedirectToAction("Index");
     }
     catch
     {
         System.Diagnostics.Debug.WriteLine("bad2");
         return View();
     }
 }