Esempio n. 1
0
        public async Task <List <BoxDto> > Handle(GetAllBoxesQuery request, CancellationToken cancellationToken)
        {
            var boxes = await _boxRepo.GetAllAsync();

            return(await Task.FromResult(boxes.Select(b => new BoxDto(b.Id, b.BoxName, b.Notes)).ToList()));
        }