Esempio n. 1
0
        public async Task <ActionResult <List <UserDto> > > GetUsersAsync()
        {
            _logger.LogInformation(ApiLogEvents.GetItem, $"{nameof(GetUsersAsync)} Started");

            var repoObj = await _localUserService.GetUsersAsync().ConfigureAwait(false);

            if (repoObj == null)
            {
                return(null);
            }

            var result = _mapper.Map <List <UserDto> >(repoObj);

            return(Ok(result));
        }