public void Save() { FilterSettingsWin.Save(); if (OrderStatuses != null) { foreach (var status in OrderStatuses) { ClientDbContext.SaveOrderStatus(TradeHandler.MessageWrapper.User.Id, (int)status, FilterSettingsWin.FilterId); } } }