public HeatViewModel(IHeatRepositories heatRepository, string heatNumber, IUserNotify notify) { this.notify = notify; this.repo = heatRepository; saveCommand = ViewModelSource.Create(() => new SaveHeatCommand(this, repo, notify)); var heat = GetHeatByNumber(heatNumber); if(heat != null) { Heat = heat; SetupManufacturers(); heats = new List<Prizm.Domain.Entity.Mill.Heat>() { heat }; } }