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