public async Task Login() { if (!HasValidInput()) { return; } BaseView?.ClearError(); _pendingRequest = true; BaseView?.OnWaiting(); ValidateService <bool> result = await LoginInteractor.Login(_Username, _Password); BaseView?.OnStopWaiting(); _pendingRequest = false; if (result.ErrorResponse.Equals(APIResponseEnum.ValidCredentials)) { BaseView?.GoToNextScreen(); } else if (result.ErrorResponse.Equals(APIResponseEnum.InvalidCredentials)) { BaseView?.OnInvalidCredentials("Invalid Credentials"); } }