private void PerformEndShiftOrTillClose() { if (string.IsNullOrEmpty(_validateTillCloseResponse.CloseTillMessage.Message) && !string.IsNullOrEmpty(_validateTillCloseResponse.ReadTotalizerMessage.Message) && _apiResponseForReadTotalizer == null) { EndShift(); } else { PerformAction(async() => { var response = await _logoutBussinesslogic.CloseTill(); NavigateService.Instance.NavigateToCloseTill(); var closeTillMessage = new CloseTillMessage { ApiResponseForReadTankDip = _apiResponseForReadTankDip, ApiResponseForReadTotalizer = _apiResponseForReadTotalizer }; MessengerInstance.Send <CloseTillMessage>(closeTillMessage, "CloseTillMessage"); MessengerInstance.Send(response, "SetCloseTill"); }); } }
private void SetCloseTillValues(CloseTillMessage message) { CloseTillMessage = message; }