Beispiel #1
0
        public JsonResult Delete(long id)
        {
            var model = db.Delete(id);

            return(Json(new
            {
                status = model
            }));
        }
Beispiel #2
0
 public ActionResult Delete(int id)
 {
     try
     {
         if (daoFeedback.Delete(id))
         {
             SetAlert("Xóa phản hồi khách hàng thành công!", "success");
             return(RedirectToAction("Index"));
         }
         else
         {
             SetAlert("Có sự cố xảy ra, hảy thử lại!", "error");
             return(RedirectToAction("Index"));
         }
     }
     catch
     {
         SetAlert("Có sự cố xảy ra, hảy thử lại!", "error");
         return(RedirectToAction("Index"));
     }
 }