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 }); } }
public ChannelSession(Channel channel) { Channel = channel; }
public void UpdateChannel(Channel channel) { channelDal.UpdateChannel(channel); }