public static void AddUser(User user) { var repo = GenericRepository.Of <User>(); user.Username = user.Username.ToLower(); repo.Add(user); ReactiveFactory.ChangeUserList(); }
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 }); } }