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