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))); }
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 })); }