public ActionResult Index(PagingInformation paging, string request_ids = null)
        {
            var me = FacebookService.GetMe();

            if (!String.IsNullOrEmpty(request_ids))
            {
                FacebookService.MarkRequestsConsumed(request_ids);
            }

            var complaints = _complaintService.PagedGetAll(paging);
            var pagedResults = GetPagedComplaintList(complaints);

            var model = new IndexViewModel() {
                Me = me,
                Complaints = pagedResults,
                TagListUrl = Url.Action("Index", "Tag"),
                Title = "Recent Complaints"
            };

            return View(model);
        }
        public ActionResult Tag(Guid id, PagingInformation pagingInformation)
        {
            var tag = _tagService.Get(id);

            if (tag == null)
            {
                return this.CanvasRedirectToAction("Index");
            }

            var me = FacebookService.GetMe();
            var complaints = _complaintService.GetComplaintsByTag(pagingInformation, id);
            var pagedResults = GetPagedComplaintList(complaints);

            var model = new IndexViewModel()
            {
                Me = me,
                Complaints = pagedResults,
                TagListUrl = Url.Action("Index", "Tag"),
                Title = String.Format("Complaints By Tag: {0}", tag.Name)
            };

            return View("Index", model);
        }
        public ActionResult Friend(long id, PagingInformation pagingInformation)
        {
            var user = _userService.FindByFacebookId(id);

            if (user == null)
            {
                return this.CanvasRedirectToAction("Index");
            }

            var me = FacebookService.GetMe();
            var complaints = _complaintService.GetComplaintsByFacebookId(pagingInformation, id);
            var pagedResults = GetPagedComplaintList(complaints);

            var model = new IndexViewModel()
            {
                Me = me,
                Complaints = pagedResults,
                TagListUrl = Url.Action("Index", "Tag"),
                Title = String.Format("Complaints By: {0}", user.Name)
            };

            return View("Index", model);
        }