public RegistrationViewModel() { context = new GallaryContext(); emailReg = new Regex(@"^([\w\.\-]+)@([a-z\-]+)((\.([a-z]){2,3})+)$"); Password = ""; ConfirmPassword = ""; }
private async void GetDataFromDBAsync() { await Task.Run(() => { context = new GallaryContext(); Users = context.Users.ToList <User>(); }); }