public static tencoderdevice UpdateEncoderDevice(tencoderdevice post)
        {
            using (vEntities context = new vEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return post;
        }
        public static tencoderdevice CreateEncoderDevice(tencoderdevice post)
        {
            using (vEntities context = new vEntities())
            {
                context.tencoderdevices.Add(post);
                context.SaveChanges();
            }

            return post;
        }
Ejemplo n.º 3
0
        public static tencoderdevice UpdateEncoderDevice(tencoderdevice post)
        {
            using (vEntities context = new vEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return(post);
        }
Ejemplo n.º 4
0
        public static tencoderdevice CreateEncoderDevice(tencoderdevice post)
        {
            using (vEntities context = new vEntities())
            {
                context.tencoderdevices.Add(post);
                context.SaveChanges();
            }

            return(post);
        }
Ejemplo n.º 5
0
 public static tencoderdevice UpdateEncoderDevice(tencoderdevice post)
 {
     return EncoderDevicesRepository.UpdateEncoderDevice(post);
 }