Exemplo n.º 1
0
 public ActionResult MyFollow(int?id)
 {
     if (id == null)
     {
         return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
     }
     return(View(followmanager.List(x => x.Owner.id == id).OrderByDescending(x => x.CreatedOn)));
 }
Exemplo n.º 2
0
        public ActionResult Followed(int[] ids)
        {
            List <int> likedchannelIds = followmanager.List(
                x => x.Owner.id == CurrentSession.User.id && ids.Contains(x.Channel.id)).Select(
                x => x.Channel.id).ToList();

            return(Json(new { result = likedchannelIds }));
        }