public void CreateNewWidget(string widgetName) { var widget = new Widget(); widget.Name = widgetName; widget.Id = Guid.NewGuid(); var result = _widgetCreator.Create(widget); if (result.Success) { Widgets.Add(widget); } }
public void CreateNewWidget(string widgetName) { var widget = new Widget { Name = widgetName, LocalId = Guid.NewGuid(), LastTimeSynced = DateTime.UtcNow }; var result = _widgetCreator.Create(widget); if (result.Success) { Widgets.Add(widget); } }