Ejemplo n.º 1
0
 public void UpdateProjectDetail(tbl_project projectDetails)
 {
     using (ProjectManagerConnection dbContext = new ProjectManagerConnection())
     {
         dbContext.Entry(projectDetails).State = EntityState.Modified;
         dbContext.SaveChanges();
     }
 }
Ejemplo n.º 2
0
 public void CreateNewProject(tbl_project projectDetails)
 {
     using (ProjectManagerConnection dbContext = new ProjectManagerConnection())
     {
         dbContext.tbl_project.Add(projectDetails);
         // dbContext.Entry(projectDetails).State = EntityState.Added;
         dbContext.SaveChanges();
     }
 }