public IActionResult Get() { var boxProfile = _userRepository.GetProfileByEmail(User.Identity.Name); var profile = Mapper.Map <UserProfileDTO>(boxProfile); return(Ok(profile)); }
public async Task <IActionResult> Get() { var user = _userRepository.GetProfileByEmail(User.Identity.Name); var org = await _organizationRepository.GetOrganization(user.OrganizationId); return(Ok(org)); }