Exemplo n.º 1
0
        public ActionResult Persoon(int id, String Full_Name, int alertId = 0, string type = "")
        {
            ViewBag.Alert = alertId;
            ViewBag.Type  = type;
            PersonAndFeeds pf = new PersonAndFeeds();

            pf.person = mgr.GetPersoon(id);
            pf.feeds  = feedManager.GetPersonFeeds(Full_Name);
            if (Request.IsAuthenticated)
            {
                ViewBag.Follow = accountManager.GetAccountById(User.Identity.GetUserId()).Follows.Exists(f => f.ID.Equals(pf.person.ID));
            }
            return(View(pf));
        }