File size: 1,537 Bytes
e26fba6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Configuration;
using System.Net.Mime;
namespace MovieFinder.Web.Controllers
{
public class HomeController : Controller
{
//
// GET: /Home/
public ActionResult Index()
{
return View();
}
public ActionResult Share()
{
return View();
}
public ActionResult Download()
{
return File(ConfigurationManager.AppSettings["MovieTubeSetup"], MediaTypeNames.Application.Octet, "MTDownloader.exe");
}
public ActionResult Download2()
{
return File(ConfigurationManager.AppSettings["MovieTubeInstaller"], MediaTypeNames.Application.Octet, "MovieTube.Installer.exe");
}
public string Message(string uid, string cn, long? timeStamp, string pcName, string version)
{
return "Firedrive.com and Sockshare.com are temporarily out of service";
}
public ActionResult Schedule()
{
var model = new ScheduleModel();
return View(model);
}
[HttpPost]
public ActionResult Schedule(DateTime from, DateTime to)
{
var model = new ScheduleModel()
{
Activities = ScheduleService.GetActivities(from, to)
};
return View(model);
}
}
}
|