Esempio n. 1
0
 // GET: /Sky/PlayRecording
 public ContentResult PlayRecording(
     string id,
     string start)
 {
     if (SkyData.Sky.AllRecordings.ContainsKey(id))
     {
         SkyData.Recording recording = SkyData.Sky.AllRecordings[id];
         SkyData.Sky.PlayRecording(recording, int.Parse(start));
         Receiver.SetMute(false);
     }
     return(this.Content(""));
 }
Esempio n. 2
0
        // GET: /Sky/DeleteRecording
        public ContentResult DeleteRecording(
            string id)
        {
            if (SkyData.Sky.AllRecordings.ContainsKey(id))
            {
                Receiver.SetMute(true);
                SkyData.Sky.Stop();

                SkyData.Recording recording = SkyData.Sky.AllRecordings[id];
                SkyData.Sky.DeleteRecording(recording);
            }
            return(this.Content(""));
        }