public Guid Insert(Project prj) { var result = _itnguyenResumeDbContext.Projects.Add(prj); _itnguyenResumeDbContext.SaveChanges(); return(result.ID); }
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); } }