コード例 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            _requirementCategoryRepository.Delete(id);
            _unitOfWork.Commit();

            return(RedirectToAction("Index"));
        }
コード例 #2
0
        public ActionResult Delete(int id)
        {
            var apiResult = TryExecute(() =>
            {
                _requirementCategoryRepository.Delete(id);
                _unitOfWork.Commit();
                return(true);
            }, "Requirement Category deleted sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }