protected void ButtonUpdateAll_OnClick(object sender, EventArgs e) { try { UpdateAll(FeedbackUpdateAll); } catch (Exception ex) { FeedbackUpdateAll.HandleException(ex); } }
protected void ButtonUpdateAll_OnClick(object sender, EventArgs e) { try { var errorCount = _UpdateAnswer.UpdateAllAnswers(false, ref _UpdateCount); FeedbackUpdateAll.AddInfo(_UpdateCount.ToString(CultureInfo.InvariantCulture) + _UpdateCount.Plural(" item was", " items were") + " updated."); if (errorCount > 0) { FeedbackUpdateAll.AddError(errorCount.ToString(CultureInfo.InvariantCulture) + errorCount.Plural(" item was", " items were") + " not updated due to errors."); } InvalidatePageCache(); } catch (Exception ex) { FeedbackUpdateAll.HandleException(ex); } }