summaryrefslogtreecommitdiff
path: root/Project-Unite/Controllers/DownloadController.cs
blob: b429d717e2b81fd549adc74605354f4ffa54d5f9 (plain) (blame)
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Project_Unite.Models;

namespace Project_Unite.Controllers
{
    public class DownloadController : Controller
    {
        // GET: Download
        public ActionResult Index()
        {
            var db = new ApplicationDbContext();
            return View(db.Downloads);
        }

        // GET: http://getshiftos.ml/Download/ViewRelease/shiftos_0.0.7_alpha_4.1_0
        public ActionResult ViewRelease(string id)
        {
            var db = new ApplicationDbContext();
            var release = db.Downloads.FirstOrDefault(x => x.Id == id);
           
            return View(release);
        }
    }
}