public void PopulateUsingKeys(string[] keys) { int msId = int.Parse(keys[0]); string[] vmKey = keys.Skip(1).ToArray(); Id = msId; AReference = Container.Instances<MostSimple>().FirstOrDefault(ms => ms.Id == msId); AViewModelReference = Container.NewViewModel<WithReferenceViewModel>(); AViewModelReference.PopulateUsingKeys(vmKey); }
public void PopulateUsingKeys(string[] keys) { var msId = int.Parse(keys[0]); var vmKey = keys.Skip(1).ToArray(); Id = msId; AReference = Container.Instances <MostSimple>().FirstOrDefault(ms => ms.Id == msId); AViewModelReference = Container.NewViewModel <WithReferenceViewModel>(); AViewModelReference.PopulateUsingKeys(vmKey); }