Exemple #1
0
        public static void AddUser(User user)
        {
            var repo = GenericRepository.Of <User>();

            user.Username = user.Username.ToLower();
            repo.Add(user);
            ReactiveFactory.ChangeUserList();
        }
Exemple #2
0
        public static async Task InsetTest(TestIndentifier test)
        {
            if (App.Features.InAppDatabase == Infrastructure.Features.FeatureAvailability.Available)
            {
                var identifierRepo = GenericRepository.Of <TestIndentifier>();

                await identifierRepo.AddAsync(test);

                ReactiveFactory.ChangeUser(new User {
                    Id = test.UserId
                });
            }
        }