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)); } }
public Dto.Profile Get(int profileId) { var profile = _profileDataService.Get(profileId); return(_mapper.Map <Dto.Profile>(profile)); }