private DicomNDeleteResponse DeleteFilmBox(DicomNDeleteRequest request) { if (_filmSession == null) { Logger.Error("Can't delete a basic film session doesnot exist for this association {0}", CallingAE); return(new DicomNDeleteResponse(request, DicomStatus.NoSuchObjectInstance)); } DicomStatus status = _filmSession.DeleteFilmBox(request.SOPInstanceUID) ? DicomStatus.Success : DicomStatus.NoSuchObjectInstance; var response = new DicomNDeleteResponse(request, status); return(response); }
private DicomNDeleteResponse DeleteFilmBox(DicomNDeleteRequest request) { if (_filmSession == null) { this.Logger.Error("Can't delete a basic film session doesnot exist for this association {0}", CallingAE); return(new DicomNDeleteResponse(request, DicomStatus.NoSuchObjectInstance)); } DicomStatus status; if (_filmSession.DeleteFilmBox(request.SOPInstanceUID)) { status = DicomStatus.Success; } else { status = DicomStatus.NoSuchObjectInstance; } var response = new DicomNDeleteResponse(request, status); response.Command.Add(DicomTag.AffectedSOPInstanceUID, request.SOPInstanceUID); return(response); }