public ActionResult DisplayAvailable(Guid?id, string breadcrumb, string callingActionDisplayName, bool displayOnly, bool?recalled, string defaultController, string defaultAction, int?maxDistance, double?maxAge)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }

            Dictionary <int, string> breadcrumbDictionary = new Dictionary <int, string>();

            breadcrumbDictionary.Add(0, breadcrumb);

            if (!recalled.HasValue)
            {
                defaultController = "GeneralInfo";
                defaultAction     = "Available";
            }

            AvailableListingDetailsViewModel model = AvailableListingViewHelpers.CreateAvailableListingDetailsViewModel(db, id.Value, breadcrumb, displayOnly, Request, defaultController, defaultAction, callingActionDisplayName, breadcrumbDictionary, recalled, User, maxDistance, maxAge);

            if (model == null)
            {
                return(HttpNotFound());
            }

            ViewBag.ListingType = "General Information";
            return(View(model));
        }
        public ActionResult Available(int?maxDistance, double?maxAge)
        {
            AvailableListingGeneralViewListModel model = AvailableListingViewHelpers.GetAvailableListingGeneralViewListModel(db, User, maxDistance, maxAge);

            return(View(model));
        }
        public ActionResult AvailableHistory()
        {
            List <AvailableListingManageHistoryViewModel> model = AvailableListingViewHelpers.GetAvailableListingManageHistoryViewModel(db, AppUserHelpers.GetOrganisationIdFromUser(db, User));

            return(View(model));
        }