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)); }
public ActionResult Delete(int id) { productBL.Delete(id); return(RedirectToAction("ProductDetails")); }