예제 #1
0
        public async Task <List <UserTitle> > GetAll()
        {
            string userId = null;

            if (User.Identity.Name != null)
            {
                var user = await _userManager.FindByNameAsync(User.Identity.Name);

                userId = user?.Id;
            }

            return(await _titleService.GetUserTitles(userId));
        }