public ActionResult Show(string id) { var channel = CronofyHelper.GetChannels().First(x => x.Id == id); ViewData["Data"] = DatabaseHandler.Many <Persistence.Models.ChannelData>("SELECT ChannelId, Record, OccurredOn FROM ChannelData WHERE ChannelId=@channelId ORDER BY OccurredOn DESC", new Dictionary <string, object> { { "channelId", channel.Id } }); return(View("Show", channel)); }
public ActionResult Index() { return(View("Index", CronofyHelper.GetChannels())); }