public ViewResult Edit(int id) { var identifier = _repository.GetById(id); var model = new AccountIdentifierViewModel { Accounts = _generalLedger, AvailablePatterns = _patterns, AccountId = identifier.Account.Id, Patterns = PatternBuilder.Parse(identifier.Pattern) }; return View(model); }
public ViewResult Create(string accountId) { var model = new AccountIdentifierViewModel { Accounts = _generalLedger, AvailablePatterns = _patterns, AccountId = accountId }; return View(model); }