Beispiel #1
0
 public void UpdateChannel(Channel channel)
 {
     const string sql = @"
     update Channels
     set Name = @name
     where Id = @id;
     ";
     using (var conn = Database.CreateConnection())
     {
         conn.Execute(sql, new { name = channel.Name, id = channel.Id });
     }
 }
Beispiel #2
0
 public ChannelSession(Channel channel)
 {
     Channel = channel;
 }
Beispiel #3
0
 public void UpdateChannel(Channel channel)
 {
     channelDal.UpdateChannel(channel);
 }