Exemplo n.º 1
0
        public async Task <IActionResult> GetAllForCustomerAsync()
        {
            var handledData = await _genericRepository.GetAllAsync();

            var items     = handledData.Items.ToArray();
            int totalSize = handledData.TotalSize;

            return(Ok(new { data = items, totalSize }));
        }