Exemple #1
0
        public static channel UpdateChannel(channel post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return(post);
        }
        public static channel UpdateChannel(channel post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.Entry(post).State = EntityState.Modified;
                context.SaveChanges();
            }

            return post;
        }
Exemple #3
0
        public static channel CreateChannel(channel post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.channels.Add(post);
                context.SaveChanges();
            }

            return(post);
        }
        public static channel CreateChannel(channel post)
        {
            using (vooEntities context = new vooEntities())
            {
                context.channels.Add(post);
                context.SaveChanges();
            }

            return post;
        }