コード例 #1
0
        public ActionResult _EditRecommendType(RecommendItemTypeEditModel recommendItemTypeEditModel)
        {
            if (!ModelState.IsValid)
                return View();
            RecommendItemType recommend = recommendItemTypeEditModel.AsRecommendItemType();

            recommendService.UpdateRecommendType(recommend);
            ViewData["tenantList"] = GetTenantSelectList(recommendItemTypeEditModel.TenantTypeId);
            return Json(new StatusMessageData(StatusMessageType.Success, "更新成功"));
        }
コード例 #2
0
 public ActionResult _EditRecommendType(string recommendTypeId = null, string tenantTypeId = null)
 {
     RecommendItemType recommend = recommendService.GetRecommendType(recommendTypeId);
     RecommendItemTypeEditModel recommendItemTypeEditModel = new RecommendItemTypeEditModel();
     if (recommend != null)
         recommendItemTypeEditModel = recommend.AsEditModel();
     ViewData["tenantList"] = GetTenantSelectList(tenantTypeId);
     return View(recommendItemTypeEditModel);
 }