public ActionResult Delete(int id) { try { _buyService.Delete(_buyService.GetById(id)); SuccessNotification("Kayıt Silindi"); return(RedirectToAction("BuyIndex")); } catch { return(View()); } }
public ActionResult Delete(int id) { return(Ok( _buyService.Delete(id))); }