/// <summary> /// Validates the staff password. /// </summary> /// <param name="request">The validate staff request.</param> /// <returns>The validate staff response.</returns> private static NullResponse ValidateStaffPassword(ValidateStaffPasswordRealtimeRequest request) { TransactionService.TransactionServiceClient transactionService = new TransactionService.TransactionServiceClient(request.RequestContext); transactionService.RetailServerStaffIsPasswordValidForStaff(request.StaffId, request.Password); return(new NullResponse()); }
/// <summary> /// Validates the staff password. /// </summary> /// <param name="request">The validate staff request.</param> /// <returns>The validate staff response.</returns> private static Response ValidateStaffPassword(ValidateStaffPasswordRealtimeRequest request) { ThrowIf.Null(request, "request"); throw new FeatureNotSupportedException(FeatureNotSupportedErrors.Microsoft_Dynamics_Commerce_Runtime_DemoModeOperationNotSupported, "ValidateStaffPassword is not supported in demo mode."); }