public static tencoderdevice UpdateEncoderDevice(tencoderdevice post) { using (vooEntities context = new vooEntities()) { context.Entry(post).State = EntityState.Modified; context.SaveChanges(); } return post; }
public static tencoderdevice UpdateEncoderDevice(tencoderdevice post) { using (vooEntities context = new vooEntities()) { context.Entry(post).State = EntityState.Modified; context.SaveChanges(); } return(post); }
public static tencoderdevice CreateEncoderDevice(tencoderdevice post) { using (vooEntities context = new vooEntities()) { context.tencoderdevices.Add(post); context.SaveChanges(); } return post; }
public static tencoderdevice CreateEncoderDevice(tencoderdevice post) { using (vooEntities context = new vooEntities()) { context.tencoderdevices.Add(post); context.SaveChanges(); } return(post); }