public PmsResponseDto DeleteBooking(int bookingId) { if (bookingId <= 0) { throw new PmsException("BookingId is not valid. Hence Booking can not be deleted."); } var response = new PmsResponseDto(); if (_iPmsLogic.DeleteBooking(bookingId)) { response.ResponseStatus = PmsApiStatus.Success.ToString(); response.StatusDescription = "Booking Deleted successfully."; } else { response.ResponseStatus = PmsApiStatus.Failure.ToString(); response.StatusDescription = "Booking Deletion failed.Contact administrator."; } return(response); }