public Task <UnfinishedBarcodes> HandleAsync(NoteIdPayload input, ExternalTask task) { try { var barcodes = _service.GetBarcodesForUnfinishedArticles(input.NoteId); return(Task.FromResult(new UnfinishedBarcodes(barcodes))); } catch (Exception e) { Console.WriteLine(e); throw; } }
public Task <HashSet <string> > HandleAsync(NoteIdPayload input, ExternalTask task) { return(Task.FromResult(_service.GetBarcodesForUnfinishedArticles(input.NoteId))); }