Exemple #1
0
        public void updateTitle(string id, title tit)
        {
            title dbtit = database.titles.First(data => data.idtitles == id);

            dbtit = tit;
            database.SaveChanges();
        }
Exemple #2
0
 public static Degree ConvertToDegree(title titleToConvert)
 {
     return(new Degree()
     {
         id = titleToConvert.idtitles, title = titleToConvert.name
     });
 }
Exemple #3
0
        public void deleteTitle(string id)
        {
            title tit = database.titles.First(data => data.idtitles == id);

            database.titles.Remove(tit);
        }
Exemple #4
0
        public title getTitle(string id)
        {
            title tit = database.titles.First(data => data.idtitles == id);

            return(tit);
        }
Exemple #5
0
 public void insertTitle(ref title tit)
 {
     database.titles.Add(tit);
     database.SaveChanges();
 }