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

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

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

            return(post);
        }
Exemplo n.º 4
0
        public static channel CreateChannel(channel post)
        {
            using (vEntities context = new vEntities())
            {
                context.channels.Add(post);
                context.SaveChanges();
            }

            return(post);
        }
Exemplo n.º 5
0
 public static channel UpdateChannel(channel post)
 {
     return ChannelRepository.UpdateChannel(post);
 }
Exemplo n.º 6
0
 public static channel CreateChannel(channel post)
 {
     return ChannelRepository.CreateChannel(post);
 }