예제 #1
0
        public void UpdateGxPoint(Project project, GxPoint gxPoint)
        {
            var gl = project.GxPoints.Single(u => u.Id == gxPoint.Id);

            if (gl != null)
            {
                project.GxPoints.Remove(gl);
                project.GxPoints.Add(gxPoint);
                gxDb.SaveChanges();
            }
        }
예제 #2
0
 public void DeleteGxPoint(Project project, GxPoint gxPoint)
 {
     project.GxPoints.Remove(gxPoint);
     gxDb.SaveChanges();
 }
예제 #3
0
 public void AddGxPoint(Project project, GxPoint gxPoint)
 {
     project.GxPoints.Add(gxPoint);
     gxDb.SaveChanges();
 }