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

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

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

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