Esempio n. 1
0
        // partial view of IPMEventInfo()
        public ActionResult SiteTypes(long year, long eventId)
        {
            var tRates = typeRates.GetQueryable().Where(x => x.eventId == eventId).ToList();

            // Try to get in memory sitetype_service_rate_view from poly for staff to continue to edit type
            Polygons poly = Polygons.GetInstance();

            poly.GetTypeRates(tRates, eventId);
            ViewBag.eventId = eventId;

            // send size, service
            ViewBag.sizes        = sizes.GetAll();
            ViewBag.services     = services.GetAll();
            ViewBag.eventStarted = isEventStarted(year);

            return(PartialView("SiteTypes", tRates));
        }