Exemple #1
0
        public async Task Update(Guid userId, AccessAction action, Guid siteId)
        {
            var status = await repository.GetStatusForUserAsync(userId);

            if (status is null)
            {
                logger.LogInformation("No status found creating one now for user: "******"Updated users status {userId} to: {action}");

            status.Update(action, siteId);
            await repository.UpdateAsync(status);
        }
 public async Task <bool> UpdateAsync(UserStatusModifyRequest request)
 {
     return(await _statusRepository.UpdateAsync(request));
 }
Exemple #3
0
 public async Task UpdateAsync(UserStatus userStatus)
 {
     await repo.UpdateAsync(userStatus);
 }