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