private void AddFA() { NewFA = new AccountsBudgetDetailsSet { AccountsMainId = Account.Id }; FAList = new ObservableCollection <FASet>(_faService.GetFAList()); if (AccountStoresList.Count == 1) { NewFA.AccountStoreNumber = AccountStoresList.FirstOrDefault().StoreNumber; } if (AccountCapexList.Count == 1) { NewFA.EquipmentCapexId = AccountCapexList.FirstOrDefault().CapexId; } AddFAOpen = true; }
public void AddFAToAccount(AccountsBudgetDetailsSet newFA) { _accountFARepository.Add(newFA); }
private void CloseFA() { NewFA = new AccountsBudgetDetailsSet(); AddFAOpen = false; }