Пример #1
0
        public ActionResult DeleteConfirm(int id)
        {
            ResultResponse result = SouvenirRepo.Delete(id);

            if (result.Success)
            {
                return(Json(new { success = result.Success, message = result.Message }, JsonRequestBehavior.AllowGet));
            }
            else
            {
                return(Json(new { success = false, message = result.Message }, JsonRequestBehavior.AllowGet));
            }
        }