public async Task <IActionResult> Delete([FromRoute] string id)
        {
            var response = await _productBL.Delete(id);

            return(Accepted(response));
        }
        public IActionResult Delete(int id)
        {
            Result <bool> result = _productBL.Delete(CacheKey, id);

            return(Json(result));
        }
示例#3
0
 public ActionResult Delete(int id)
 {
     productBL.Delete(id);
     return(RedirectToAction("ProductDetails"));
 }