Exemple #1
0
        public async System.Threading.Tasks.Task AddUserLogAsync(User user, UserLog log)
        {
            ThrowIfDisposed();

            if (user == null)
            {
                throw new ArgumentNullException("user");
            }

            _context.UserLogs.Add(new UserLog()
            {
                Description = log.Description,
                Metadata    = log.Metadata,
                Type        = log.Type,
                UserId      = user.Id
            });
            await _context.SaveChangesAsync();
        }
Exemple #2
0
 public async System.Threading.Tasks.Task <EntityResult> AddUserLogAsync(User user, UserLog log)
 {
     await((UserStore)Store).AddUserLogAsync(user, log);
     return(await System.Threading.Tasks.Task.FromResult(EntityResult.Succeded(0)));
 }