示例#1
0
        public async Task AddUser(User item)
        {
            item.Id = await _genRepo.GetNextAutoincrementValue();

            item.Password = _crypt.CreateValueHash(item.Password);
            await _context.Documents.InsertOneAsync(item);
        }