コード例 #1
0
        public Task <string> GetEmailAsync(MyUser user)
        {
            if (string.IsNullOrWhiteSpace(user.Id))
            {
                return(Task.FromResult(user.UserName));
            }

            var id    = int.Parse(user.Id);
            var email = _userService.GetUserEmail(id);

            return(Task.FromResult(email));
        }