Beispiel #1
0
        public ActionResult Delete(int id)
        {
            var apiResult = TryExecute(() =>
            {
                _referalRepository.Delete(id);
                _unitOfWork.Commit();
                return(true);
            }, "Referal deleted sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
Beispiel #2
0
 public ActionResult DeleteConfirmed(int id)
 {
     _referalRepository.Delete(id);
     _unitOfWork.Commit();
     return(RedirectToAction("Index"));
 }