private string ValidateDeleteRecordingActPropertyCommandHandler() { int recordingId = int.Parse(GetCommandParameter("recordingId", true)); int recordingActId = int.Parse(GetCommandParameter("recordingActId", true)); int propertyId = int.Parse(GetCommandParameter("propertyId", true)); Recording recording = Recording.Parse(recordingId); RecordingAct recordingAct = recording.GetRecordingAct(recordingActId); Property property = recordingAct.GetPropertyEvent(Property.Parse(propertyId)).Property; LandRegistrationException exception = null; exception = LRSValidator.ValidateDeleteRecordingActProperty(recordingAct, property); if (exception != null) { return exception.Message; } return String.Empty; }
private void Initialize() { recordingAct = RecordingAct.Parse(int.Parse(Request.QueryString["recordingActId"])); property = Property.Parse(int.Parse(Request.QueryString["propertyId"])); propertyEvent = recordingAct.GetPropertyEvent(property); }