예제 #1
0
        public async Task <UserProfileListResponse> Get()
        {
            try
            {
                var userProfiles = await _profileDataService.Get();

                return(new UserProfileListResponse(HttpOk, userProfiles));
            }
            catch (Exception e)
            {
                _logger.Error(e, FailedToGetList, nameof(UserProfile));
                return(new UserProfileListResponse(HttpInternalServerError, InternalServerErrorMsg));
            }
        }
예제 #2
0
        public Dto.Profile Get(int profileId)
        {
            var profile = _profileDataService.Get(profileId);

            return(_mapper.Map <Dto.Profile>(profile));
        }