public async Task <ActionResult <List <UserClaimDto> > > GetUserClaimsByUserName(string userName) { _logger.LogInformation(ApiLogEvents.GetItem, $"{nameof(GetUserClaimsByUserName)} with {userName} Started"); var repoObj = await _localUserService.GetUserClaimsByUserNameAsync(userName).ConfigureAwait(false); if (repoObj == null) { return(NotFound()); } var result = _mapper.Map <List <UserClaimDto> >(repoObj); return(Ok(result)); }