Exemple #1
0
        public JsonResult GetRegionActivityConfigByActivityId(Guid activityId)
        {
            RegionMarketingManager manager = new RegionMarketingManager();
            var result = manager.GetRegionActivityConfigByActivityId(activityId);

            return(Json(result, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public ActionResult RegionMarketingConfig(string activityId, string optionType = "Add")
        {
            ViewBag.OptionType = optionType;
            var result = new RegionMarketingModel()
            {
                ImgList     = new List <ActivityImageConfig>(),
                ProductList = new List <RegionMarketingProductConfig>()
            };

            if (optionType.Equals("Edit") && !string.IsNullOrEmpty(activityId))
            {
                RegionMarketingManager manager = new RegionMarketingManager();
                result = manager.GetRegionActivityConfigByActivityId(Guid.Parse(activityId));
            }

            return(View(result));
        }