Ejemplo n.º 1
0
        public ActionResult Delete(int id)
        {
            var apiResult = TryExecute(() =>
            {
                _crmPotentialCategoryRepository.Delete(id);
                _unitOfWork.Commit();
                return(true);
            }, "Potential Category deleted sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
 public ActionResult DeleteConfirmed(int id)
 {
     _crmPotentialCategoryRepository.Delete(id);
     _unitOfWork.Commit();
     return(RedirectToAction("Index"));
 }