public void AddFranchiseVM(Franchise franchise) { FranchiseList.Add(new FranchiseViewModel() { Data = franchise }); }
void Handle(Input.AddFranchise action) { var obj = new Franchise { Name = FranchiseNameToAdd, Corporation = (Corporation)this.Data, Trend = 0 }; Transaction.Commit(); AddFranchiseVM(obj); }