public void Delete(MessageBindingModel model) { var element = messageStorage.GetElement(new MessageBindingModel { Id = model.Id }); if (element == null) { throw new Exception("Элемент не найден"); } messageStorage.Delete(model); }
public void Delete(MessageBindingModel model) { var element = messageStorage.GetElement(new MessageBindingModel { Id = model.Id }); if (element == null) { throw new Exception("Элемент не найден"); } messageStorage.Delete(model); }