Ejemplo n.º 1
0
        public async Task <List <Unit> > GetAllAsync()
        {
            var items = await _unitsRepository.GetAllAsync();

            if (items != null && items.Any())
            {
                return(items.ToList());
            }

            return(new List <Unit>());
        }
Ejemplo n.º 2
0
        public async Task <List <Unit> > GetAllAsync()
        {
            var items = await _unitsRepository.GetAllAsync();

            return(items.ToList());
        }