public Task <Stream> ExportAllSeries(string authenticationCookie, string patientID, ExportOptions options) { return(Task.Factory.StartNew <Stream>(() => { var userName = AuthHandler.Authorize(authenticationCookie, PermissionsTable.Instance.CanExport); var zip = _exportAddin.ExportAllSeries(userName, patientID, options); return zip; })); }
public string ExportAllSeries(string authenticationCookie, string patientID, ExportOptions options) { Stream zip; var userName = ServiceUtils.Authorize(authenticationCookie, PermissionsTable.Instance.CanExport); zip = _exportAddin.ExportAllSeries(userName, patientID, options); return(SaveZip(patientID, zip)); }