public ActionResult Play()
{
string audio = Server.MapPath("~") + @"Content\Uploads\audio.wav";
if (audio != null && audio != "")
{
try
{
using (SoundPlayer SPlayer = new SoundPlayer(audio))
{
SPlayer.PlaySync();
}
}
catch (Exception e)
{
if (e.Source != null)
Console.WriteLine(e.Source);
throw;
}
}
return new EmptyResult();
}