public void UpdateWidget(JustHtmlWidget widget) { if (widget == null) { throw new ArgumentNullException(nameof(widget)); } _repository.Update(widget); }
public void InsertWidget(JustHtmlWidget widget) { if (widget == null) { throw new ArgumentNullException(nameof(widget)); } _repository.Insert(widget); }