public AddAppViewModel CreateNewApp(IRecommendationEx recommendation) { string guid = Guid.NewGuid().ToString(); AddAppViewModel result = new AddAppViewModel(recommendation) { Guid = guid }; repository.Add(guid, result); result.Saved += OnAppSaved; return result; }
public AddAppViewModel CreateNewApp(IRecommendationEx recommendation) { string guid = Guid.NewGuid().ToString(); AddAppViewModel result = new AddAppViewModel(recommendation) { Guid = guid }; repository.Add(guid, result); result.Saved += OnAppSaved; return(result); }
public AddAppViewModel(IRecommendationEx recommendation) { recommendation.Accept(); this.AppName = recommendation.AppName; this.Description = recommendation.Description; this.AddOperatingSystem(recommendation.OperatingSystem); }