Пример #1
0
        public IActionResult Get()
        {
            var boxProfile = _userRepository.GetProfileByEmail(User.Identity.Name);
            var profile    = Mapper.Map <UserProfileDTO>(boxProfile);

            return(Ok(profile));
        }
Пример #2
0
        public async Task <IActionResult> Get()
        {
            var user = _userRepository.GetProfileByEmail(User.Identity.Name);
            var org  = await _organizationRepository.GetOrganization(user.OrganizationId);

            return(Ok(org));
        }