private void OpenAddCapexToAccount()
 {
     NewCapexForAccount = new AccountsCapexInfoSet();
     CapexAmount = 0M;
     if (!IsAddCapexOpen)
     {
         CapexesList = new ObservableCollection<CapexSet>(_capexService.GetCapexesForYearList(CurrentAccount.AccountYear));
         NewCapexForAccount.AccountsMainId = CurrentAccount.Id;
     }
     IsAddCapexOpen = !IsAddCapexOpen;
 }
 public void AddCapexToAccount(AccountsCapexInfoSet newCapexForAccount)
 {
     _capexesRepository.Add(newCapexForAccount);
 }
 public void DeleteCapexFromAccount(AccountsCapexInfoSet currentCapex)
 {
     _capexesRepository.Remove(currentCapex);
 }
 private void OpenAddCapexToAccount()
 {
     IsAddCapexOpen = true;
     NewCapexForAccount = new AccountsCapexInfoSet { AccountsMainId = Account.Id};
 }