Exemplo n.º 1
0
        public async Task <IActionResult> GetContainersAsync(int userId)
        {
            var containers = await _containerRepository.GetContainersAsync(userId).ConfigureAwait(false);

            if (containers != null && containers.Count() > 0)
            {
                return(new ObjectResult(containers));
            }
            else
            {
                return(NoContent());
            }
        }