public async Task SaveConfigListAsync([FromBody] WidgetZoneConfigItemModel model) { await _widgetManager.ClearFromZoneAsync(model.Zone); foreach (var item in model.Widgets) { await _widgetManager.AddToZoneAsync(model.Zone, item); } }
public async Task SaveConfigListAsync([FromBody] WidgetZoneConfigItemModel model) { await _widgetManager.ClearFromZoneAsync(model.Zone); foreach (var item in model.Widgets) { await _widgetManager.AddToZoneAsync(model.Zone, item); } }