public PmsResponseDto DeletePaymentType(int paymentTypeId) { if (paymentTypeId <= 0) { throw new PmsException("Payment Type is not valid. Hence Payment Type can not be deleted."); } var response = new PmsResponseDto(); if (_iPmsLogic.DeletePaymentType(paymentTypeId)) { 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); }