public async Task <IHttpActionResult> GetProfile(string userName) { var user = await _userService.FindByNameAsync(userName); var profileDto = await _clientProfileService.GetProfileAsync(user.Id); var profile = _mapper.Map <ClientProfileViewModel>(profileDto); return(Ok(profile)); }