Пример #1
0
        public async Task <User> FilterAsync(UserResetCodeModel model)
        {
            Guid?code = GetGuidCode(model.Code);

            if (code.HasValue)
            {
                return(await Collection.Find(ByResetCode(code.Value.ToString())).SingleOrDefaultAsync());
            }

            return(null);
        }
Пример #2
0
        public User Filter(UserResetCodeModel model)
        {
            Guid?code = GetGuidCode(model.Code);

            if (code.HasValue)
            {
                return(Collection.Find(ByResetCode(code.Value.ToString())).SingleOrDefault());
            }

            return(null);
        }