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

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

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