public SignUpViewModel() { _impl = new UserRepoImpl(new socialNetworkLabEntities()); _User = new User(); _Register = new RelayCommand(o => { SignUpClick(); }, f => !(String.IsNullOrEmpty(FirstName) || String.IsNullOrEmpty(LastName) || String.IsNullOrEmpty(Email) || String.IsNullOrEmpty(Password) || Birthday < DateTime.Now.AddDays(-365 * 18))); }
public SignInViewModel() { _impl = new UserRepoImpl(new socialNetworkLabEntities()); }