public IList<Notification> GetNotifications(Position position) { var collection = Database.GetCollection<Notification>("Notifications"); return collection.FindAll().ToList(); }
public ActionResult GetNotifications(Position position) { return Json (NotificationsService.Instance.GetNotifications(position), JsonRequestBehavior.AllowGet); }