public void CreateTransactionAction() { try { var products = GatherProductsForTransaction(); if (products.Count < 1) { Presenter.Loggable.Log(ChooseAtLeastOneProduct); return; } TransactionDbService.AddTransaction(products); OperationsViewService.ClearRows(); Presenter.Loggable.Log(SuccessfulOperation); } catch (ArgumentException e) { Presenter.Loggable.Log(e.Message); } }
public void CancelOperation() { OperationsViewService.ClearRows(); RefreshGridAction(); }