Пример #1
0
 public Languages UpdateLanguage(int id, Languages language)
 {
     db.Entry(language).State = System.Data.Entity.EntityState.Modified;
     db.SaveChanges();
     return(language);
 }
Пример #2
0
 public Languages CreateLanguage(Languages language)
 {
     db.Languages.Add(language);
     db.SaveChanges();
     return(language);
 }