public void updateTitle(string id, title tit) { title dbtit = database.titles.First(data => data.idtitles == id); dbtit = tit; database.SaveChanges(); }
public static Degree ConvertToDegree(title titleToConvert) { return(new Degree() { id = titleToConvert.idtitles, title = titleToConvert.name }); }
public void deleteTitle(string id) { title tit = database.titles.First(data => data.idtitles == id); database.titles.Remove(tit); }
public title getTitle(string id) { title tit = database.titles.First(data => data.idtitles == id); return(tit); }
public void insertTitle(ref title tit) { database.titles.Add(tit); database.SaveChanges(); }