// GET: api/Notification public List <NotificationModel> GetNearbyByNotificationType(double Latitude, double Longitude, int NotificationTypeId) { var notifications = new Business.NotificationBusiness(new DB.NotificationDB()); //return notif.GetNearby(Latitude, Longitude); return(SeedNotification(notifications.Get(Latitude, Longitude, NotificationTypeId))); }
// GET: api/Notification/5 public Notification Get(int id) { var notif = new Business.NotificationBusiness(new DB.NotificationDB()); var filter = from r in notif.Get() where r.Id == id select r; return(filter.FirstOrDefault()); }
// POST: api/Notification public bool Post(Notification value) { var notif = new Business.NotificationBusiness(new DB.NotificationDB()); return(notif.Add(value)); }