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