Added Notification System, Renamed Repository to Entities

This commit is contained in:
Keivan 2010-10-07 20:35:04 -07:00
parent 9c7355f3fb
commit 27d86a8540
43 changed files with 351 additions and 760 deletions

View file

@ -0,0 +1,28 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using NzbDrone.Core.Providers;
namespace NzbDrone.Web.Controllers
{
public class NotificationController : Controller
{
private readonly INotificationProvider _notifications;
//
// GET: /Notification/
public NotificationController(INotificationProvider notificationProvider)
{
_notifications = notificationProvider;
}
[HttpGet]
public JsonResult Index()
{
return Json(_notifications.ProgressNotifications, JsonRequestBehavior.AllowGet);
}
}
}