public HttpResponseMessage GetAudioContent(string songKey, Guid songID) { SongBLL songBLL = new SongBLL(); songBLL.CountPlayback(new SongViewModel() { Id = songID }); var audio = new AudioStream(songKey); var httpResponse = Request.CreateResponse(); httpResponse.Content = new PushStreamContent(audio.WriteToStream, new MediaTypeHeaderValue("audio/wav")); return(httpResponse); }
public SongController() { this.songBLL = new SongBLL(); }