public ActionResult Edit([Bind(Include = "Id,EnglishWord,SpanishWord,GermanWord,ItalianWord")] Translations translations)
 {
     if (ModelState.IsValid)
     {
         db.Entry(translations).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(translations));
 }
 public void Update(Languages languages)
 {
     db.Entry(languages).State = EntityState.Modified;
 }
Beispiel #3
0
 public void Update(User user)
 {
     db.Entry(user).State = EntityState.Modified;
 }
 public void Update(Group group)
 {
     db.Entry(group).State = EntityState.Modified;
 }
Beispiel #5
0
 public void Update(Teacher teacher)
 {
     db.Entry(teacher).State = EntityState.Modified;
 }
 public void Update(LanguageLVL lvl)
 {
     db.Entry(lvl).State = EntityState.Modified;
 }