Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 public ActionResult Index()
 {
     return(View("Index", CronofyHelper.GetChannels()));
 }