예제 #1
0
        public int AddImage(Image image)
        {
            _db.Image.AddObject(image);
            _db.SaveChanges();

            return image.Id;
        }
예제 #2
0
 public void EditImage(Image image)
 {
     _db.ObjectStateManager.ChangeObjectState(image, EntityState.Modified);
     _db.SaveChanges();
 }