public ActionResult Delete(string id) { string lstMsg = string.Empty; int returnCode = _categoryBL.Delete(id, out lstMsg); if ((int)Common.ReturnCode.Succeed == returnCode) { TempData["Success"] = "Deleted Successfully!"; } else { TempData["Error"] = lstMsg; } return(RedirectToAction("CategorySearch")); }
public ActionResult Delete(int id) { categoryBL.Delete(id); return(RedirectToAction("CategoryDetails")); }
public IActionResult Delete(string id) { return(Ok(_categoryBL.Delete(id))); }
public IActionResult Delete(int id) { Result <bool> result = _categoryBL.Delete(CacheKey, id); return(Json(result)); }
public async Task <IActionResult> Delete([FromRoute] string id) { var response = await _categoryBL.Delete(id); return(Accepted(response)); }