public ActionResult SubscriptionNew(Guid id)
        {
            var place = AppLookups.GetCacheIndexEntry(id);

            PrepareNewCallViewData(place);

            var model = new NewPartnerCallSubscriptionViewModel()
            {
                ParnterCallPlaceID = place.ID,
                ForIndoor          = true,
                ForOutdoor         = true,
                EmailRealtime      = true,
                MobileRealtime     = true,
                ExactOnly          = false
            };

            return(View(model));
        }
        public ActionResult SubscriptionNew(Guid id, NewPartnerCallSubscriptionViewModel m)
        {
            var place = AppLookups.GetCacheIndexEntry(id);

            if (ModelState.IsValid && place != null)
            {
                var pc = pcSvc.CreatePartnerCallSubscription(new PartnerCallSubscription()
                {
                    ForIndoor      = m.ForIndoor,
                    ForOutdoor     = m.ForOutdoor,
                    PlaceID        = m.ParnterCallPlaceID,
                    EmailRealTime  = m.EmailRealtime,
                    MobileRealTime = m.MobileRealtime,
                    ExactMatchOnly = m.ExactOnly
                });

                return(RedirectToAction("Subscriptions"));
            }
            else
            {
                PrepareNewCallViewData(AppLookups.GetCacheIndexEntry(m.ParnterCallPlaceID));
                return(View("SubscriptionNew", m));
            }
        }
        public ActionResult SubscriptionNew(Guid id, NewPartnerCallSubscriptionViewModel m)
        {
            var place = AppLookups.GetCacheIndexEntry(id);

            if (ModelState.IsValid && place != null)
            {
                var pc = pcSvc.CreatePartnerCallSubscription(new PartnerCallSubscription()
                {
                    ForIndoor = m.ForIndoor,
                    ForOutdoor = m.ForOutdoor,
                    PlaceID = m.ParnterCallPlaceID,
                    EmailRealTime = m.EmailRealtime,
                    MobileRealTime = m.MobileRealtime,
                    ExactMatchOnly = m.ExactOnly
                });

                return RedirectToAction("Subscriptions");
            }
            else
            {
                PrepareNewCallViewData(AppLookups.GetCacheIndexEntry(m.ParnterCallPlaceID));
                return View("SubscriptionNew", m);
            }
        }
        public ActionResult SubscriptionNew(Guid id)
        {
            var place = AppLookups.GetCacheIndexEntry(id);

            PrepareNewCallViewData(place);

            var model = new NewPartnerCallSubscriptionViewModel()
            {
                ParnterCallPlaceID = place.ID,
                ForIndoor = true,
                ForOutdoor = true,
                EmailRealtime = true,
                MobileRealtime = true,
                ExactOnly = false
            };

            return View(model);
        }