Exemple #1
0
        public ActionResult Delete(int id)
        {
            var apiResult = TryExecute(() =>
            {
                _ticketSubCategoryRepository.Delete(id);
                _unitOfWork.Commit();
                return(true);
            }, "Ticket Sub Category deleted sucessfully");

            return(Json(apiResult, JsonRequestBehavior.AllowGet));
        }
Exemple #2
0
        public void deleteSubCategory(int id)
        {
            TicketSubCategory cat = subCategoryRepo.GetById(id);

            subCategoryRepo.Delete(cat);
        }