public PmsResponseDto DeleteTax(int taxId) { if (taxId <= 0) { throw new PmsException("Tax id is not valid. Hence Tax can not be deleted."); } var response = new PmsResponseDto(); if (_iPmsLogic.DeleteTax(taxId)) { response.ResponseStatus = PmsApiStatus.Success.ToString(); response.StatusDescription = "Record deleted successfully."; } else { response.ResponseStatus = PmsApiStatus.Failure.ToString(); response.StatusDescription = "Operation failed.Please contact administrator."; } return(response); }