public IActionResult ProductDelete(string id, string productId)
 {
     if (ModelState.IsValid)
     {
         _categoryViewModelService.DeleteProductCategoryModel(id, productId);
         return(new NullJsonResult());
     }
     return(ErrorForKendoGridJson(ModelState));
 }
Beispiel #2
0
        public async Task <IActionResult> ProductDelete(CategoryModel.CategoryProductModel model)
        {
            if (ModelState.IsValid)
            {
                await _categoryViewModelService.DeleteProductCategoryModel(model.Id, model.ProductId);

                return(new NullJsonResult());
            }
            return(ErrorForKendoGridJson(ModelState));
        }