public ActionResult WXShopCategoryEdit(int?Id) { ViewBag.Categories = _iWXShopCategoryService.getCategoryList(); Models.WXShopCategoryDTO model = new Models.WXShopCategoryDTO(); if (Id > 0) { model = _iWXShopCategoryService.GetWXShopCategory(Id.Value); } return(View(model)); }
public JsonResult WXShopCategorySave(Models.WXShopCategoryDTO dto) { var result = _iWXShopCategoryService.SaveOrUpdateWXShopCategory(dto); return(Json(result)); }