public ActionResult Delete(int id) { var apiResult = TryExecute(() => { _referalRepository.Delete(id); _unitOfWork.Commit(); return(true); }, "Referal deleted sucessfully"); return(Json(apiResult, JsonRequestBehavior.AllowGet)); }
public ActionResult DeleteConfirmed(int id) { _referalRepository.Delete(id); _unitOfWork.Commit(); return(RedirectToAction("Index")); }