示例#1
0
        public async Task <User> CreateUserAsync(IdentityUser data)
        {
            var entry = await Context.Users.AddAsync(data.Create());

            await Context.SaveChangesAsync();

            return(await GetByIdOrFailAsync(entry.Entity.Id));
        }