public virtual UpdateBudgetItemCommandResponse UpdateBudgetItemCommand(UpdateBudgetItemCommandRequest request) { var response = new UpdateBudgetItemCommandResponse(); try { // Raise Initialization Event var initialization = UpdateBudgetItemCommandInitialization; if (initialization != null) { initialization(request, response); } // Raise Execute Event var execute = UpdateBudgetItemCommandExecute; if (execute != null) { response = execute(request); } // Raise Complete Event var complete = UpdateBudgetItemCommandComplete; if (complete != null) { complete(request, response); } } catch (Exception exception) { // Raise Error Event var error = UpdateBudgetItemCommandError; if (error != null) { error(request, response, exception); } } return(response); }
public override UpdateBudgetItemCommandResponse OnUpdateBudgetItemCommandExecute(UpdateBudgetItemCommandRequest request) { var response = new UpdateBudgetItemCommandResponse(); try { response.UpdateBudgetItemResponse = _apiCommands.ApiUpdateBudgetItem(request.UpdateBudgetItemRequest); } catch (Exception ex) { response.Exception = ex; response.Message = ex.Message; } return(response); }
public abstract UpdateBudgetItemCommandResponse OnUpdateBudgetItemCommandExecute(UpdateBudgetItemCommandRequest request);