Esempio n. 1
0
        public Task IsActiveAsync(IsActiveContext context)
        {
            var subjectId = context.Subject.GetSubjectId();

            context.IsActive = _marvinUserRepository.IsUserActive(subjectId);
            return(Task.CompletedTask);
        }
        public Task IsActiveAsync(IsActiveContext context)
        {
            var subjectId = context.Subject.GetSubjectId();

            context.IsActive = marvinUserRepository.IsUserActive(subjectId);

            return(Task.FromResult(0));
        }