Exemple #1
0
 public Languages UpdateLanguage(int id, Languages language)
 {
     db.Entry(language).State = EntityState.Modified;
     db.SaveChanges();
     return(language);
 }
Exemple #2
0
 public Languages CreateLanguage(Languages language)
 {
     db.Languages.Add(language);
     db.SaveChanges();
     return(language);
 }