Beispiel #1
0
        public Guid Insert(Project prj)
        {
            var result = _itnguyenResumeDbContext.Projects.Add(prj);

            _itnguyenResumeDbContext.SaveChanges();
            return(result.ID);
        }
Beispiel #2
0
        public Guid Insert(Work wk)
        {
            var result = _itnguyenResumeDbContext.Works.Add(wk);

            _itnguyenResumeDbContext.SaveChanges();
            return(result.ID);
        }
 public bool Update(Information infor)
 {
     try
     {
         //_itnguyenResumeDbContext.Entry(infor).State = EntityState.Modified;
         _itnguyenResumeDbContext.SaveChanges();
         return(true);
     }
     catch (Exception ex)
     {
         //logging
         return(false);
     }
 }