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