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 })); }
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 })); }