public EditMemberViewModel(Account account, Member member)
        {
            LogManager.GetLog(GetType()).Info("Create");

            _account = account;
            _member = member;

            FirstName = _member.FirstName;
            LastName = _member.LastName;
            Phone = _member.Phone;
        }
        public void SaveAction()
        {
            LogManager.GetLog(GetType()).Info("Save");

            ServiceProvider.Instance.GetService<EventAggregator>().PublishOnUIThread(
             new Events.ShowDialog());

            using (var db = new PetoeterDb(PetoeterDb.FileName))
            {
                var member = new Member
                {
                    FirstName = this.FirstName,
                    LastName = this.LastName,
                    Phone = this.Phone,
                    Updated = DateTime.Now
                };

                db.Members.Insert(member);
                _account.Members.Add(member);

                _account.Updated = DateTime.Now;
                db.Accounts.Update(_account);
            }

            ServiceProvider.Instance.GetService<EventAggregator>().PublishOnUIThread(
                new Core.Events.SwitchTask
                {
                    Task = new EditAccountViewModel(_account)
                });
        }