示例#1
0
        public async Task UpdatePushChannelAsync(Guid userId, string channel)
        {
            var user = await dbContext.Users.FirstOrDefaultAsync(u => u.UserId == userId);

            user.PushChannel = channel;
            dbContext.Update(user);
            await dbContext.SaveChangesAsync();
        }