示例#1
0
 public ActionResult DeleteGift(int id)
 {
     if (Request.IsAjaxRequest())
     {
         var giftName = _giftService.Get(id).Name;
         _giftService.Delete(id);
         return(PartialView("_DeleteGiftSuccessPartial", giftName));
     }
     return(View());
 }
示例#2
0
 public ActionResult Delete(int id)
 {
     try
     {
         _giftService.Delete(_giftService.GetById(id));
         SuccessNotification("Kayıt Silindi");
         return(RedirectToAction("GiftIndex"));
     }
     catch
     {
         return(View());
     }
 }