public async Task <ObjectResult> GetAll()
        {
            var response = await service.GetAllAsync();

            return(response.AsResource(mapper));
        }
Esempio n. 2
0
        public async Task <IActionResult> GetAll()
        {
            var ordeItemGetAll = await _orderItemService.GetAllAsync();

            return(Ok(_mapper.Map <IEnumerable <OrderItemDto> >(ordeItemGetAll)));
        }