public ActionResult Notification(int UId)
        {
            var U = UDal.GetUsers();
            var P = PDal.GetProducts();
            var N = NDal.GetNotifications();

            var list  = from u in U join n in N on u.UId equals n.UId join p in P on n.PId equals p.PId select new { u.UId, p.PName, p.Incremenent, n.Status };
            var lists = list.Where(e => e.UId.Equals(UId));
            var NList = (object)JsonConvert.SerializeObject(lists);

            return(View(NList));
        }
 /// <summary>
 ///     Gets notifications
 /// </summary>
 /// <param name="teamId">To or from id</param>
 /// <returns>Notifications</returns>
 public static List <NotificationModel> GetNotifications(int teamId)
 {
     return(NotificationDal.GetNotifications(teamId));
 }
 public ObservableCollection <Notification> GetNotifications()
 {
     return(notificationDal.GetNotifications());
 }