예제 #1
0
        public ActionResult AddCategoryUserMapping(CategoryMappingModel model)
        {
            // var res = AutoMapper.Mapper.Map<CategoryMappingModel, CategoryUserMapping>(model);

            var isSuccess = _subCategoryService.AddCategoryUserMapping(new CategoryUserMapping {
                ID         = model.ID,
                CategoryID = model.CategoryId,
                UserID     = model.UserID
            });

            return(Json(isSuccess, JsonRequestBehavior.AllowGet));
            //return RedirectToAction("CategoryUserMapping");
        }